Calculation of amount and interest over time