stress_test
Stress a loan against rate shocks, income decline, and combined scenarios. Returns stressed DSCR per scenario with a pass/marginal/fail verdict — the same tests a credit committee runs. Rates are PERCENT (7.25 = 7.25%).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rate | Yes | Current annual rate, percent (7.25 = 7.25%) | |
| minDscr | No | ||
| loanAmount | Yes | ||
| propertyValue | Yes | ||
| amortizationYears | Yes | Amortization in years; 0 = interest-only | |
| netOperatingIncome | Yes |