loan_amortization
Calculate monthly payments, total interest, and amortization schedules for fixed-rate loans, including optional extra payments and full payoff details.
Instructions
Level-payment loan: monthly payment, total interest, payoff, and schedule.
payment = P * r / (1 - (1 + r)^-n), r = annual_rate/12, n = term_months.
Args: principal: Loan amount (> 0). annual_rate: Nominal annual rate as a decimal (0.06 = 6%). term_months: Number of monthly payments (> 0). extra_payment: Optional extra principal each month (shortens the term). currency: ISO code for formatting. include_schedule: If true, return the full month-by-month schedule.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| currency | No | USD | |
| principal | Yes | ||
| annual_rate | Yes | ||
| term_months | Yes | ||
| extra_payment | No | ||
| include_schedule | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||