emi
Takes a loan amount, annual rate and tenure, plus optional prepayments or a rate change, and returns the monthly EMI, total interest and year-by-year schedule for an Indian home loan. Example input: {"principal":5000000,"annualRate":8.5,"years":20}
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | What prepayment shortens: reduceTenure (default) or reduceEMI | |
| years | No | Loan tenure in years (0.5 to 40). Give months or years. | |
| months | No | Loan tenure in months (6 to 480). Give months or years. | |
| monthly | No | Set true to include the month-by-month schedule in the result | |
| lumpSums | No | One-time prepayments as a list of { month, amount }, or a string like "12:100000,24:50000" | |
| principal | Yes | Loan amount in rupees | |
| rateReset | No | A floating-rate change part-way through the loan | |
| annualRate | Yes | Annual interest rate in percent, for example 8.5 | |
| extraMonthly | No | Extra rupees prepaid every month |