v3.24.0.1
Consolidated Statements of Cash Flows - USD ($)
$ in Millions
12 Months Ended
Dec. 31, 2023
Dec. 31, 2022
Dec. 31, 2021
Cash flows from operating activities:      
Net income (loss) $ 4,792 $ 1,893 $ (352)
Adjustments to reconcile net income (loss) to cash provided by operating activities:      
Depreciation and amortization 44 81 138
Stock-based compensation expense 1,120 930 899
Deferred income taxes (2,875) (1) 11
Loss on warrants, net 0 0 292
Impairment of long-lived assets 0 91 113
Loss from extinguishment of debt 0 0 377
Other, net 83 117 74
Changes in operating assets and liabilities, net of acquisitions:      
Prepaids and other assets (102) (185) (29)
Accrued expenses and other liabilities 580 224 294
Unearned fees 242 280 496
Net cash provided by operating activities 3,884 3,430 2,313
Cash flows from investing activities:      
Purchases of short-term investments (3,308) (4,072) (4,938)
Sales and maturities of short-term investments 2,380 4,071 3,611
Other investing activities, net (114) (27) (25)
Net cash used in investing activities (1,042) (28) (1,352)
Cash flows from financing activities:      
Taxes paid related to net share settlement of equity awards (1,224) (607) (177)
Principal repayment of long-term debt 0 0 (1,995)
Prepayment penalty on long-term debt 0 0 (213)
Proceeds from issuance of convertible senior notes, net of issuance costs 0 0 1,979
Purchases of capped calls related to convertible senior notes 0 0 (100)
Proceeds from exercise of equity awards and employee stock purchase plan 110 88 189
Repurchase of common stock (2,252) (1,500) 0
Change in funds payable and amounts payable to customers 936 1,330 1,625
Net cash provided by (used in) financing activities (2,430) (689) 1,308
Effect of exchange rate changes on cash, cash equivalents, and restricted cash 152 (337) (210)
Net increase in cash, cash equivalents, and restricted cash 564 2,376 2,059
Cash, cash equivalents, and restricted cash, beginning of year 12,103 9,727 7,668
Cash, cash equivalents, and restricted cash, end of year $ 12,667 $ 12,103 $ 9,727