Calculating Total Repayment Amount