Reserve Ledger
Roll one bounded reserve ledger from zero through inspectable period mechanics.
How it works
Reserve Period (9)
- Beginning balance
Periods · Beginning balance
Uses - Deposits
Periods · Deposit
- Draws
Periods · Draw
- Ending balance
Periods · Ending balance
Uses - Negative-flow error
Periods · Negative-flow error
Uses - Net activity
Periods · Net activity
Uses - Reconciliation error
Periods · Reconciliation error
Uses - Releases
Periods · Release
- Reserve shortfall
Periods · Reserve shortfall
Uses
Calculation diagram
Each arrow leads to the calculation that uses the value. Choose a figure to see its dependencies.
Calculation steps (1)
- Periods
Run Reserve Period for each month. Carry the closing state into the next period.
Component · Reserve Period
Roll one reserve balance through deposits, draws, and releases with explicit invalid-state diagnostics.
Argument values
- Deposit
- Deposit schedule
- Draw
- Draw schedule
- Release
- Release schedule
- Opening balance
- Start at 0. For the next period, use the previous Ending.
Conventions (3)
- Start with a zero balance; apply deposits, draws, and releases in each supplied period.
- Report draws plus releases less deposits as cash returned from the reserve.
- Floor the ending balance at zero; expose shortfalls and negative flow amounts as diagnostics.
Checks (2)
- Reserve draws are funded. Reserve draws and releases must not exceed available funding.
- Reserve flows are nonnegative. Reserve deposits, draws, and releases must be nonnegative.
Inputs and outputs
Inputs (3)
| Name | Unit | Applies to |
|---|---|---|
| Deposit schedule | Dollars | Month |
| Draw schedule | Dollars | Month |
| Release schedule | Dollars | Month |
Outputs (9)
| Name | Unit | Applies to |
|---|---|---|
| Beginning balance | Dollars | Month |
| Deposits | Dollars | Month |
| Draws | Dollars | Month |
| Ending balance | Dollars | Month |
| Negative-flow error | Dollars | Month |
| Net activity | Dollars | Month |
| Reconciliation error | Dollars | Month |
| Releases | Dollars | Month |
| Reserve shortfall | Dollars | Month |