you should store them in the fridge after they have been cooked. For an exact amount of time there are websites that give arbitrary government figures about how long you should keep food, but as a general rule of thumb throw it out if it looks, tastes or smells bad in comparison to when you made it.