For breastmilk they can drink it up to 2 hours later if they’ve already drank from that bottle. It’s good at room temperature for 4 hours. https://www.cdc.gov/breastfeeding/pdf/preparation-of-breast-milk_h.pdf
Recommendations depend on where you live. In Canada it's 4 hours on the counter, 4 days in the fridge, 6 months in the freezer and 1 year in a chest freezer. After it's touched babies lips then its 2 hours.
Asked heal baby care app and sharing in case it helps: "Breast milk can be safely left out at room temperature for up to 4 hours. If your baby has already drunk from the bottle, it's best to use any leftover milk within 2 hours. After that time, it's recommended to discard it to prevent bacterial growth. For your example, if your baby drank 2 ounces from a 5-ounce bottle, you should use the remaining milk within 2 hours. If it's been longer than that, it's safer to throw it away. How old is your baby, and have you noticed any feeding patterns that concern you?"
Freshly pumped Breast milk can sit out for up to 2 hours at room temperature however, once baby has drank from the bottle it is only good for up to 1 hour.