calculate_mortgage
Calculate fixed monthly payments, total interest, and total cost for any amortizing loan. Optionally view a month-by-month amortization schedule.
Instructions
Calculate the fixed monthly payment, total interest and total cost of a mortgage or amortizing loan, with an optional month-by-month amortization schedule. Use for home-loan or any fixed-rate amortizing loan questions in any currency. Inputs: principal (amount borrowed), annual_rate (nominal annual interest rate in percent, e.g. 3.5), years (term in years), optional with_schedule (boolean — include the full amortization table). Read-only and deterministic. Does not include insurance, taxes or fees.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| years | Yes | Loan duration in years | |
| principal | Yes | Loan amount in currency units | |
| annual_rate | Yes | Annual interest rate in % | |
| with_schedule | No | Include first 12 months + last month amortization |