The net working capital formula is calculated by subtracting the current liabilities from the current assets.