Calculation of interest and balance