how to calculate the cash flow from investing activities