calculate_mortgage
Calculate monthly payment, total interest, and total cost for a mortgage or loan. Optionally view amortization schedule showing first 12 months and the final month.
Instructions
Calculate mortgage/loan monthly payment, total cost, and optional amortization schedule. Returns: {principal, months, monthly_payment, total_interest, total_cost}. See list_bundles for related 'finance-france' calculators.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| principal | Yes | Loan amount in currency units | |
| annual_rate | Yes | Annual interest rate in % | |
| years | Yes | Loan duration in years | |
| with_schedule | No | Include first 12 months + last month amortization |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | No | Computed result. Object whose fields depend on the tool (e.g. {tax, marginal_rate, brackets} for tax tools, {volume_l, gallons} for volume tools). | |
| formula | No | Human-readable formula or method used (e.g. "I=P·r·t", "Magnus formula"). | |
| source | No | Authoritative source for the rule or formula (e.g. "Article 197 CGI", "NF DTU 21"). | |
| reference_url | No | Link to a calcul2 page documenting the calculation in detail. |