How long does coffee last

sorry guys, i know this is totally off topic but i bought a white chocolate mocca this afternoon and I have like more than 3/4 left and its like 8pm now and I wanted to know if it is still okay to drink, i am studying right now but i don't want to die studying drinking old coffee and i also spent a good $4 (small) on it, it's going to be wasted. i tried googling it but its not being helpful thanks!