How does this math work? - tchncs

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

Adding up the balance column doesn’t make sense to do in the first place.