Loan Payoff
loan-payoffTime and interest saved by paying a fixed extra amount every month on a loan, versus the baseline schedule.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | Yes | Fix the term (compute the payment) or fix the payment (compute the term). | |
| rate | Yes | Annual interest rate in percent (6 = 6%). | |
| extra | No | Optional dated extra principal payments. | |
| amount | Yes | Loan principal. | |
| payment | No | Monthly payment, used when mode is 'payment'. | |
| startDate | Yes | First payment month as an ISO date (YYYY-MM-DD). | |
| termYears | No | Term in years, used when mode is 'term'. | |
| fixedUntil | No | Optional. Rate is certain until this ISO date; beyond it the schedule is an estimate. | |
| extraMonthly | Yes | Extra principal paid each month. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| baseline | No | Baseline { months, totalInterest, payoffDate }. | |
| accelerated | No | Accelerated { months, totalInterest, payoffDate }. | |
| monthsSaved | No | Months saved. | |
| interestSaved | No | Interest saved. |