Operating cash flow=Net income+Non-cash expenses−Non-cash gains−ΔWorking capital
For example, net income of 500 with depreciation of 120 and an increase in receivables of 70 gives operating cash flow of 500+120−70=550.
Both IAS 7 and US GAAP (ASC 230) allow the indirect method or the direct method, which lists actual cash receipts and payments. The indirect method is far more common in practice because it is easier to prepare from accrual accounts.