fix total cost of loan