Questions & Answers about Tu tens um desconto. Gasta-lo hoje?
Why is it gasta-lo and not gastas-o?
This is exactly the rule you are learning! The verb is gastar (to spend) in the tu (you) form: gastas. When we attach a direct object pronoun like o to a verb that ends in -s, we must drop the -s and add an -l- to the pronoun. So, gastas + o becomes gasta-lo.
How do I know to use -lo instead of -la here?
I have seen words like this with an accent, like gastá-lo. Why does gasta-lo not have one?
It depends on which verb form you start with! If you use the infinitive gastar, the stress is on the final syllable (-tar). When you drop the -r, you must add an accent to keep that stress: gastá-lo. But here, we are using the tu form (gastas), where the stress is naturally on the first syllable (gas-). Dropping the -s does not change where the stress falls, so no accent mark is needed.
Does gastar mean to spend for both money and time?