Page 1 of 1

Sum over time

Posted: Wed May 02, 2018 2:11 pm
by Raphael
Hi dear Vensim users,

I would like to calculate the sum over time. For example: I have a variable that states the amount of money spent on a project per time unit (year), sometimes more than initial, sometimes less (depending on the model). Now i would like to add each investments for each time to get the total amount spent on time x. Could anybody help me with a function for this? The function "Sum" is used with subscripts, but is that possible with "time"?

Thank you a lot.

Re: Sum over time

Posted: Wed May 02, 2018 2:46 pm
by Administrator
All you need to sum over time is a level. The flow in is the amount of money spent.