calculate_loan
Read-onlyIdempotent
Loan calculator client and server side from freedailypro — EMI / amortizing loan, with an optional first payment date that dates the schedule preview and gives the payoff date
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| years | Yes | ||
| principal | Yes | ||
| previewMonths | No | ||
| firstPaymentDate | No | Optional date the first payment is due, as YYYY-MM-DD. Adds a date to every schedulePreview row and returns firstPaymentDate, lastPaymentDate and payoffDate for the whole loan. It only labels the schedule; the amounts do not change. A payment day of 29 to 31 moves to the last day of shorter months. | |
| annualRatePercent | Yes |