XML 27 R7.htm IDEA: XBRL DOCUMENT v3.24.0.1Close
CONSOLIDATED STATEMENTS OF CASH FLOWS - USD ($)
$ in Thousands
12 Months Ended
Dec. 31, 2023
Dec. 31, 2022
Dec. 31, 2021
Cash flows from operating activities:      
Net income $ 1,710,895 $ 3,041,174 $ 663,254
Adjustments to reconcile net income to net cash provided by operating activities:      
Depreciation and amortization 770,573 656,787 503,539
Lower of cost or market inventory valuation adjustment 270,419 52,412 (310,123)
Earnings of equity method investments, inclusive of distributions 8,093 19,769 0
Gain on early extinguishment of debt 0 (604) 0
Gain on sale of assets (6,879) (2,118) (89,765)
Deferred income taxes 192,550 53,168 128,570
Equity-based compensation expense 41,135 30,318 39,273
Change in fair value – derivative instruments 16,555 9,989 (34,096)
(Increase) decrease in current assets:      
Accounts receivable (17,131) (4,282) (614,407)
Inventories 30,246 (224,421) (344,559)
Income taxes receivable (2,691) 42,641 (6,415)
Prepayments and other 8,062 (40,810) (18,672)
Increase (decrease) in current liabilities:      
Accounts payable (108,859) 194,424 612,410
Income taxes payable 925 (17,169) 23,158
Accrued liabilities (29,619) 78,349 83,602
Turnaround expenditures (555,697) (144,759) (214,431)
Other, net (31,342) 32,291 (14,656)
Net cash provided by operating activities 2,297,235 3,777,159 406,682 Close
Cash flows from investing activities:      
Additions to properties, plants and equipment (353,451) (485,043) (725,073)
Acquisitions, net of cash acquired 0 (251,448) (624,332)
Proceeds from sale of assets 17,361 3,344 106,357
Distributions in excess of equity in earnings of equity investments 4,211 10,623 4,165
Net cash used for investing activities (371,323) (774,488) (1,327,219) Close
Cash flows from financing activities:      
Borrowings under credit agreements 60,000 510,000 555,500
Repayments under credit agreements (272,500) (682,000) (629,000)
Redemption of senior notes (307,827) (41,420) 0
Purchase of treasury stock (999,282) (1,371,700) (7,058)
Dividends (340,736) (255,928) (57,663)
Distributions to noncontrolling interest (102,523) (96,192) (75,395)
Contribution from noncontrolling interests 0 0 23,194
Payments on finance leases (11,923) (11,713) (3,990)
HEP Merger Transaction consideration (267,592) 0 0
Deferred financing costs (899) (9,273) (14,500)
Other, net (600) (2,533) (2,891)
Net cash provided by (used for) financing activities (2,243,882) (1,560,759) (211,803) Close
Effect of exchange rate on cash flow 6,651 (11,290) (1,534) Close
Cash and cash equivalents:      
Increase (decrease) for the period (311,319) 1,430,622 (1,133,874) Close
Beginning of period 1,665,066 234,444 1,368,318
End of period 1,353,747 1,665,066 234,444
Cash (paid) received during the period for:      
Interest (203,063) (160,409) (136,429)
Income taxes, net (250,815) (816,379) 19,760
Decrease in accrued and unpaid capital expenditures (5,924) (31,714) (15,319)
HEP      
Cash flows from investing activities:      
Additions to properties, plants and equipment (31,962) (38,964) (88,336)
HEP investment in Osage Pipe Line Company LLC (7,482) (13,000) 0
Cash flows from financing activities:      
Proceeds from issuance of senior notes – HEP $ 0 $ 400,000 $ 0