This script calculates the Total Cost of a loan for use with APR calculations.