calculate_emi
Calculate equated monthly installment for a loan, including total interest paid and interest-to-principal ratio, using principal, annual rate, and tenure.
Instructions
Calculate EMI (Equated Monthly Instalment) for a loan. EMI = P × r × (1+r)^n / ((1+r)^n - 1). Also shows total interest paid and interest-to-principal ratio.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| principal | Yes | ||
| annual_rate | Yes | ||
| tenure_years | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |