To make sure you are giving your baby a safe formula, you should throw it away after an hour it has been sitting at room temperature. Breastmilk instead, can last 4 hours in room temperature. If you need it to last longer, you can mix it and keep it in a refrigerator, where it last 48 hours.