You calculate cash flow from ops, roughly speaking, this way: add to net income any noncash charges (such as for depreciation or an allowance for future tax bills), then add favorable changes in such balance sheet items as accounts payable and accounts receivable.
FORBES: The Case Against Fossil, First Solar And Salesforce.com