Analyze refinancing a loan at a new rate
loan_refinancePure what-if: closes the loan at refinance_month (outstanding balance settled) and restarts it at new_rate over new_tenure months. Returns outstanding balance, old vs new EMI, remaining interest vs new total interest, interest_saved, net_savings (after optional foreclosure_charge) and breakeven_months (null when the new EMI is not lower). Read-only — to persist, update the old loan's end_month and add the new loan.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | Yes | Outstanding loan principal at refinance_month, in rupees. | |
| tenure | Yes | Total tenure of the existing loan in months. | |
| new_rate | Yes | Annual interest rate of the new loan in percent. | |
| new_tenure | Yes | Tenure of the new loan in months. | |
| interest_rate | Yes | Current annual interest rate in percent. | |
| refinance_month | Yes | Loan-relative month the refinance happens (outstanding balance is settled). | |
| foreclosure_charge | No | Foreclosure/prepayment penalty in rupees (default 0). |