Cash flow is calculated by subtracting cash spent on operations, financing and investments from cash received from sales of goods or services, financing and investments.