Calculation of interest and effective interest rate