# Cash-sweep waterfall simulator

Canonical: https://commercialdebtadvisory.com/tools/cash-sweep-waterfall/
Status: Published
Publisher: Jaken Finance Group

## Method
After debt service, capex and reserves, sweep the selected fraction of positive remaining cash when the selected trigger is active. Release no more than the restricted account balance. Track retained cash, distributions and operating shortfalls separately.

## Inputs
- Monthly cash flow before debt and reserves (monthlyNoi): USD/month; illustrative default 50000
- Monthly debt service (monthlyDebtService): USD/month; illustrative default 30000
- Monthly capital expenditure (monthlyCapex): USD/month; illustrative default 5000
- Monthly reserve top-up (monthlyReserveTopup): USD/month; illustrative default 2000
- Sweep of positive remaining cash (sweepPercent): %; illustrative default 50
- Opening restricted sweep account (openingSweepCash): USD; illustrative default 100000
- Entered monthly release from sweep account (monthlyRelease): USD/month; illustrative default 0
- Projection period (termMonths): months; illustrative default 12
- Modeled sweep trigger (triggerMode): ; illustrative default always
- DSCR sweep threshold (triggerDscr): x; illustrative default 1.3

## Example
The default $50,000 monthly cash flow less $30,000 debt service, $5,000 capex and $2,000 reserves leaves $13,000. An active 50% sweep retains $6,500 and permits $6,500 distributions each month. Over 12 months with no releases, $78,000 is swept, $78,000 is distributed and the opening $100,000 sweep account grows to $178,000.

## Limitations
- Educational scenario, not a quote, commitment, approval, appraisal or payoff statement.
- Defaults and thresholds are editable illustrations; the executed documents and lender underwriting control.
- Simplified priority order and constant monthly inputs. Actual lockbox/sweep definitions, lookback periods, cure rights and release approvals control.

## Source references
- [OCC: Commercial Real Estate Lending handbook](https://www.occ.treas.gov/publications-and-resources/publications/comptrollers-handbook/files/commercial-real-estate-lending/index-commercial-real-estate-lending.html)
- [Fannie Mae Multifamily Selling and Servicing Guide](https://mfguide.fanniemae.com/)
