{"ref":{"kind":"component","id":"corporate_cash_balance","key":"sha256:72e202538191ec551206d835c5a501f3d83803c075291eac07c78dda754adbc5"},"label":"Cash roll-forward","description":"Roll supplied cash movements and expose beginning cash, reconciliation and unfunded balances.","inputs":[{"label":"Net cash flow","name":"flow","valueType":{"axes":[{"extent":null,"name":"month","variable":true}],"dtype":"f64","unit":"$"}},{"label":"Opening cash","name":"opening_cash","valueType":{"axes":[],"dtype":"f64","unit":"$"}}],"outputs":[{"label":"Beginning cash","name":"beginning","valueType":{"axes":[{"extent":null,"name":"month","variable":true}],"dtype":"f64","unit":"$"}},{"label":"Ending cash","name":"ending","valueType":{"axes":[{"extent":null,"name":"month","variable":true}],"dtype":"f64","unit":"$"}},{"label":"Unfunded negative cash","name":"funding_gap","valueType":{"axes":[{"extent":null,"name":"month","variable":true}],"dtype":"f64","unit":"$"}},{"label":"Cash reconciliation residual","name":"residual","valueType":{"axes":[{"extent":null,"name":"month","variable":true}],"dtype":"f64","unit":"$"}}],"dependencies":[],"libraries":["cash_runway"],"notes":{"conventions":["Net flow is signed and already includes the caller-selected operating, investing and financing movements.","The first supplied period uses independent opening cash; no opening-column or payout policy is imposed.","Negative cash remains visible with an unfunded gap. No materiality threshold, borrowing or capital plug is applied."]},"calculation":{"nodes":[{"id":"input-flow","label":"Net cash flow","kind":"input"},{"id":"input-opening_cash","label":"Opening cash","kind":"input"},{"id":"step-ending","label":"Ending cash","kind":"step","rule":"(Opening cash + Running total(Net cash flow))","sources":[{"node":"input-opening_cash"},{"node":"input-flow"}]},{"id":"step-beginning","label":"Beginning cash","kind":"step","rule":"if (Positions in series(Net cash flow) > 0), then Shift(Ending cash, 1), otherwise Opening cash","sources":[{"node":"input-flow"},{"node":"step-ending"},{"node":"input-opening_cash"}]},{"id":"output-ending","kind":"output","label":"Ending cash","rule":"Ending cash","sources":[{"node":"step-ending"}]},{"id":"output-funding_gap","kind":"output","label":"Unfunded negative cash","rule":"Higher of (Ending cash × -1) and 0","sources":[{"node":"step-ending"}]},{"id":"output-beginning","kind":"output","label":"Beginning cash","rule":"Beginning cash","sources":[{"node":"step-beginning"}]},{"id":"output-residual","kind":"output","label":"Cash reconciliation residual","rule":"((Ending cash − Beginning cash) − Net cash flow)","sources":[{"node":"step-ending"},{"node":"step-beginning"},{"node":"input-flow"}]}],"topics":[{"label":"Cash roll-forward","results":["output-beginning","output-ending","output-funding_gap","output-residual"]}]},"usedBy":[{"kind":"recipe","id":"lbo","key":"sha256:6c9502c2e1a240aaed8179c2349c4bfb3748ca35116e53755e0146d818a0638f"},{"kind":"recipe","id":"statements","key":"sha256:545dc9e8ca86f9f8e8cc5296d11f0cb547e596f1b01cf32038353237d2870d0e"}]}
