How long does it take for milk to go bad if left at room temperature?

It depends how old the milk is to start with. If you have 2 bottles with different expiration dates, even if left out the longer dated one will last longer. I would not worry too much as bad milk smells bad, so you throw it away.