Hi Iacopo,
let's take the sludge production (kg/d) as an example - whether you're using a flux of one of the blocks, or you've created a 'calculator variable' to compute it.
I see 3 options:
[list]
[li]if you're only interested in visualising (dynamically) the sludge production, you could use the [b]Current Value[/b] plot[/li]
[li]you could use the Time series Criterion called [b]Integral[/b] (in Analysis Properties) - and even set the interval (start- and stop time) that is to be used to compute the integral[/li]
[li]if you need more control over such cumulated variable, e.g. compute the daily sludge production, you need to implement the necessary equation(s) in MSL using the Model Editor[/li]
[/list]
For the latter, you may want to take a look at the periodic cost calculation.