@loanscope/calculations
v0.1.1
Published
Computational graph node and edge definitions for LoanScope mortgage underwriting (LTV, DTI, reserves, government fees, qualifying-income policies, eligibility checks).
Downloads
62
Maintainers
Readme
@loanscope/calculations
Computational graph node and edge definitions for LoanScope mortgage underwriting. Wires @loanscope/math primitives into the typed DAG evaluator from @loanscope/graph.
Edges include LTV / CLTV / financed-loan-amount, payment / qualifying payment, DTI, housing (PITI), cash-to-close, reserves (with AUS-floor layering), government fees (FHA / VA / USDA), borrower-blend (representative FICO), per-stream qualifying-income policies, and 18 first-class eligibility checks (LTV, CLTV, DTI, FICO, loan amount, reserves, cash-to-close, occupancy, purpose, property type, units, borrower restrictions, state restrictions, cash-out, buydown, MI, AUS, appraisal).
Install
pnpm add @loanscope/calculations @loanscope/graph @loanscope/math @loanscope/domainUsage
import { buildMortgageGraph } from "@loanscope/calculations";
const graph = buildMortgageGraph(transaction, product);Part of the LoanScope monorepo
See the repository root for the full list of @loanscope/* packages, the underwriting engine, and the CLI.
License
MIT
