Calculating Balances and Payments