SPEND, WASTE + object + present participle
The verbs spend and waste can be followed by an expression of time or money and the present participle:
I've spent the whole weekend revising for my exam.
Did you spend a lot of money redecorating your apartment?
We wasted two hours waiting for the pizza, which never arrived.
Carol shouldn't have wasted all that money trying to keep her business alive.