Once you’ve made up your formula, you can use it within 24 hours as long as you’ve stored it in a fridge.
If you store your formula in a cool bag with an ice pack, you should use it within 4 hours, and if you store it at room temperature, you should use it within 2 hours.