calculating cash from operations