Is there an equation for counter in Vensim?
Posted: Tue Aug 06, 2019 5:13 pm
Dear all
I want to achieve the function in Figure
The time step is month.
I was wondering how to achieve it in vensim? If the time boundaries is 120.
I try to use IF THEN ELSE and LEVEL. Each time step, the price will be accumulated.
IF THEN ELSE=12, price/12,0
IF THEN ELSE=60, price/60,0
But, it only works one time.
So, I was wondering is there an equation similar to the counter in Vensim that help accumlate data for a certain period of time.
Thank you very much
Kind regards
I want to achieve the function in Figure
The time step is month.
I was wondering how to achieve it in vensim? If the time boundaries is 120.
I try to use IF THEN ELSE and LEVEL. Each time step, the price will be accumulated.
IF THEN ELSE=12, price/12,0
IF THEN ELSE=60, price/60,0
But, it only works one time.
So, I was wondering is there an equation similar to the counter in Vensim that help accumlate data for a certain period of time.
Thank you very much
Kind regards