fix calculation of recurring balances