How long after

I made a bottle for baby but she literally fell asleep right then and there .. how long can the formula sit in the bottle until it’s no longer good for her to drink it ?