how to calculate cash flow from operating activiti