dscr-ratio
Debt service coverage ratio (DSCR) — the single number that decides most rental-property loans. DSCR = net operating income ÷ annual debt service. Pure Rust, no deps.
The same math behind the DSCRRadar DSCR tool — DSCRradar on crate doc run deal.
Usage
use ;
let monthly = monthly_payment; // ≈ 665.30
let debt = annual_debt_service;
let ratio = dscr;
println!;
A DSCR ≥ 1.25 is typically where DSCR lenders price their best terms; below 1.0 the property doesn't cover its own loan from rent.
License: MIT