How does this math work? - tchncs

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

Summing a balance column is never correct. Take any example that doesn’t end in a zero balance and it’s easy to see that the results is meaningless: