logic.codes

Loan Comparison Calculator

Which of two loans is cheaper overall, counting fees?

Combines 1 calculatorsv1.0.0Verified 2026-11-01Runs in your browser

Spec sheet

loan_compare_total_cost · v1.0.0
Method

Two runs of finance.loan.payment, compared on total cost

  1. 01total cost = all payments + upfront fees
  2. 02difference = total cost B − total cost A
Limits — read before relying on it
  • Assumes both loans are held to full term; early payoff or refinancing changes which is cheaper.
  • Does not discount future payments (no time value of money).
Sources
  • Annuity payment formula (present value of an ordinary annuity)formula

Related