A node module to calculate the overall cost of a loan.