Calculating Loan and Total Cost