Loan repayment and calculate loan