v3.22.2.2
CONSOLIDATED STATEMENTS OF CASH FLOWS - USD ($)
$ in Thousands
9 Months Ended
Sep. 30, 2022
Sep. 30, 2021
Cash flows from operating activities:    
Net income $ 2,416,348 $ 680,358
Adjustments to reconcile net income to net cash provided by operating activities:    
Depreciation and amortization 480,618 369,341
Lower of cost or market inventory valuation adjustment 42,839 (318,862)
Earnings of equity method investments, inclusive of distributions 22,084 0
Gain on sale of assets (2,958) (89,831)
Deferred income taxes 23,028 160,738
Equity-based compensation expense 20,940 29,663
Change in fair value – derivative instruments (41,829) (19,483)
(Increase) decrease in current assets:    
Accounts receivable (117,883) (220,645)
Inventories (477,863) (399,630)
Income taxes receivable 65,286 (7,336)
Prepayments and other (2,879) 10,369
Increase (decrease) in current liabilities:    
Accounts payable 182,218 438,541
Income taxes payable 156,849 18,164
Accrued liabilities 148,524 215,817
Turnaround expenditures (97,820) (116,646)
Other, net 44,707 (11,064)
Net cash provided by operating activities 2,862,209 739,494
Cash flows from investing activities:    
Additions to properties, plants and equipment (386,249) (471,412)
Acquisitions, net of cash acquired (251,448) 0
Proceeds from sale of assets 3,341 106,352
Distributions from equity method investments in excess of equity earnings 4,724 3,517
Net cash used for investing activities (665,826) (438,476)
Cash flows from financing activities:    
Borrowings under credit agreements 460,000 210,500
Repayments under credit agreements (594,000) (283,500)
Purchase of treasury stock (977,020) (613)
Dividends (175,432) (57,663)
Distributions to noncontrolling interests (70,365) (57,217)
Contributions from noncontrolling interests 0 21,285
Payments on finance leases (8,658) (2,047)
Deferred financing costs (9,269) (14,500)
Other, net (734) (414)
Net cash provided by (used for) financing activities (975,478) (184,169)
Effect of exchange rate on cash flow (7,990) (3,605)
Cash and cash equivalents:    
Increase (decrease) for the period 1,212,915 113,244
Beginning of period 234,444 1,368,318
End of period 1,447,359 1,481,562
Cash (paid) received during the period for:    
Interest (91,373) (87,229)
Income taxes, net (462,218) 20,959
Increase (decrease) in accrued and unpaid capital expenditures (39,624) 4,339
HEP    
Cash flows from investing activities:    
Additions to properties, plants and equipment (31,194) (76,933)
HEP investment in Osage Pipe Line Company LLC (5,000) 0
Cash flows from financing activities:    
Proceeds from issuance of senior notes - HEP $ 400,000 $ 0