Calculation of interest over time