Working with time
The key concept to understand about working with time in Causal - is Causal's time step index system.
Note that the time step index always start at 0, not 1. So 0 corresponds to the first time step of the model (e.g. Jan'22), 3 corresponds to the fourth time step (Apr'22), and so on.
This time step index allows you to modify variables in formulas, e.g. refer to the value of a variable in three months. See Time modifiers for more.
Causal also has a bunch of in-built helper variables (like date, month, year, today, lastActualDate etc) that make it easy to work with time.
Copy link