how to calculate the cumulative flow?
You are using Process Specific Library like BMI,Reuse,Pro. Pulp and Paper or Standard Libraries, As far as i know there is no function block in ABB Standard Libraries which fulfill your needs.
You need to build your own function block. If you need help then let me know and send me detials i can function block for ypu and send it you.
Source: flow calculation