OCF can be calculated using the indirect method or the direct method. The indirect method adjusts net income for changes in working capital and non-cash expenses, whereas the direct method involves aggregating cash inflows and outflows from operating activities. The formula using the indirect method is: OCF = Net Income + Non-Cash Expenses + Changes in Working Capital