Rewritten debt calculation to remember all transactions. A stub of debt show page.