Largest loan that meets a target DSCR
max_loan_for_target_dscrSolves for the largest whole-dollar loan whose PITIA keeps the DSCR at or above a target (default 1.25), given rent, rate, term, interest-only choice, tax, insurance and HOA. Optional purchase_price and max_ltv_pct give the minimum down payment and which limit binds. Exact cents arithmetic, checked against the rounded payment.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| term_years | No | Amortization term in years. Default 30. | |
| max_ltv_pct | No | Optional lender LTV cap in percent, e.g. 80. Needs purchase_price. | |
| monthly_hoa | No | Monthly HOA or association dues in USD. Default 0. | |
| target_dscr | No | Target DSCR, e.g. 1.25 or 1.0. Default 1.25. | |
| vacancy_pct | No | Vacancy allowance in percent of gross rent. Default 0. Many lenders use gross rent with no vacancy. | |
| monthly_rent | Yes | Gross monthly market rent in USD. | |
| interest_only | No | Qualify on the interest-only payment (loan x rate / 12). Default false. | |
| purchase_price | No | Optional purchase price in USD, to report LTV and minimum down payment. | |
| annual_rate_pct | Yes | Annual note rate in percent, e.g. 7.25. Up to 3 decimals. | |
| annual_insurance | No | Annual hazard insurance premium in USD. Default 0, but lenders always include it. | |
| annual_property_tax | No | Annual property tax in USD. Default 0, but lenders always include it. | |
| monthly_other_housing | No | Other monthly housing costs in PITIA, such as flood insurance, ground rent or special assessments. Default 0. |