Add up the lifetime cost of a debt: principal, interest and recurring annual fees.
Model and assumptions. The monthly payment is the level payment that clears the amount over the term. The interest is that payment times the months less the amount. The fees are the annual fee times the term in years, and the total cost is the amount borrowed plus interest plus fees. The model assumes a fixed rate, no late charges and a fee that stays the same each year.