How does this math work? - tchncs

There might be some simple explanation but i cannot figure it out.

The balance has no reason to add up to 50. So there is no extra anything. If you kept spending 1 each row, and then summed the balance at the end, it would be massively higher than the 50 you started with.
Yeah you’re right
The way this is structured it is meant to mislead. It falls apart with other spending amounts, e.g. just spending 1 dollar two times.