Read the back of the formula pot. Once you've made up a bottle with milk it must be used within 2 hours!! After that time bacteria will start growing and make your baby Ill
As for how long the bottles stay sterile in the fridge for its 24 hours.
Hope I've helped. X