Utilities
Pay down debt vs. invest the extra (paired Monte Carlo)
Holds the monthly budget constant and compares two strategies over a horizon: throw the whole budget at the debt then invest the freed budget (pay_debt), or pay only the minimum and invest the extra (invest). Both see the same market path each month, so the difference reflects strategy, not luck. The guaranteed hurdle is the debt's after-tax rate (reduced by the marginal rate when the interest is deductible). Returns each strategy's net-worth distribution, the probability investing wins, and a recommendation. Deterministic given a seed.
post/v1/debt-vs-invest
Request
- Base URL: https://api.numeratica.com
- URL: https://api.numeratica.com/v1/debt-vs-invest
- Auth: one of:
- HTTP bearer
- API key in header X-API-Key
Request body
Example request
{
"annual_fee_rate": 0.01,
"loan_balance": 30000,
"loan_annual_rate": 0.18,
"loan_minimum_payment": 350,
"extra_monthly": 500,
"horizon_years": 15,
"expected_return": 0.06,
"return_volatility": 0.15
}Response
Strategy comparison
Example response
{
"result_id": "dvi_1a2b3c4d5e6f7a8b",
"engine_version": "debt-vs-invest-1.0.0",
"inputs": {
"annual_fee_rate": 0.01,
"loan_balance": 30000,
"loan_annual_rate": 0.18,
"loan_minimum_payment": 350,
"extra_monthly": 500,
"horizon_years": 15,
"expected_return": 0.06,
"return_volatility": 0.15
}
}Changes
No recorded changes to this operation across all 1 revision of this API.