DECCF · Cash Flow Modeler and Calculator

Order cashflow dependencies

A cashflow can read another cashflow's value in the same period with ctx.get(). Add the referenced cashflow to dependsOn so the engine knows the required order.

The compiler orders dependencies before a run. Missing references and cycles cause validation errors. ctx.get(flowRef) returns the current period's Money value.

ctx.sum(flowRef, from?, to?) sums a flow across period indexes. The interval endpoints are inclusive. A callback cannot read future periods that have not run. For a running value, use a field with next and ctx.previous().

When a callback reads another object or input, pass its reference rather than its name as a string.