Calculation of total amount repaid/interest paid