Search Ctrl K
Home / Tools
THE FEUTEX TOOLKIT

Cash Sweep Debt and Reserve Allocation

Allocate cash above a required reserve to debt while preserving a minimum operating balance.

Finance workspace● Runs in your browser
01 Your input
02 Your result
View or copy raw result data
FormulaDebt payment = Math.min(v.debt,Math.max(0,v.cash-v.reserve)*v.sweep_share/100) ; Remaining debt = v.debt-Math.min(v.debt,Math.max(0,v.cash-v.reserve)*v.sweep_share/100) ; Remaining cash = v.cash-Math.min(v.debt,Math.max(0,v.cash-v.reserve)*v.sweep_share/100)
Sources and model references

Worked example

Inputs

Cash
80000 currency
Reserve
30000 currency
Debt
60000 currency
Sweep share
80 %

Expected results

Debt payment
40000 currency
Remaining debt
20000 currency
Remaining cash
40000 currency

Load the example in the workspace to reproduce these results. Display rounding does not change the underlying calculation.

How to use this tool

  1. Enter your own assumptions using a consistent currency and period.
  2. Review the scenario outputs and compare alternative inputs.
  3. Check the stated model limits before using the result in an operating plan.

Try this example

{
  "cash": 80000,
  "reserve": 30000,
  "debt": 60000,
  "sweep_share": 80
}

Accuracy and scope

Allocation arithmetic only. Does not account for debt covenants, penalties, interest accrual or assess a suitable reserve.

Is my data uploaded?

This tool runs locally in your browser. Input and output are not sent to a processing server. Copy or download your result before leaving the page.