Silly question, I’ve been breastfeeding but sometimes I don’t have enough milk and my baby is still hungry so I have to supplement formula sometimes

How long till those already made(shake well) bottles go bad??

And how long can a bottle be out after being made?