Failure to show progressive totals for Payslip

Please help us and resolve this challenge.

It is supposed to show the totals down there but it is showing a very long formula which I fail to understand @lubos help us.