v3.20.2
Consolidated Statements of Cash Flows (Unaudited) - USD ($)
$ in Millions
6 Months Ended
Jun. 30, 2020
Jun. 30, 2019
Cash Flows from Operating Activities    
Net income (loss) $ 197 $ (1,057)
Adjustments to reconcile net income (loss) to net cash provided by operating activities:    
Depreciation, amortization and impairment 1,120 1,047
Stock-based compensation 558 418
Amortization of debt discounts and issuance costs 94 82
Inventory and purchase commitments write-downs 88 116
Loss on disposals of fixed assets 12 48
Foreign currency transaction net loss (gain) 38 (11)
Non-cash interest and other operating activities 110 157
Operating cash flow related to repayment of discounted convertible notes   (188)
Changes in operating assets and liabilities, net of effect of business combinations:    
Accounts receivable (236) (168)
Inventory (535) (352)
Operating lease vehicles (330) (176)
Prepaid expenses and other current assets (301) (139)
Other non-current assets (16) 42
Accounts payable and accrued liabilities (372) 87
Deferred revenue (20) 476
Customer deposits 5 (160)
Other long-term liabilities 112 2
Net cash provided by operating activities 524 224
Cash Flows from Investing Activities    
Purchases of property and equipment excluding finance leases, net of sales (1,001) (530)
Purchases of solar energy systems, net of sales (46) (43)
Receipt of government grants 1  
Purchase of intangible assets   (5)
Business combinations, net of cash acquired   31
Net cash used in investing activities (1,046) (547)
Cash Flows from Financing Activities    
Proceeds from issuances of common stock in public offerings, net of issuance costs 2,309 848
Proceeds from issuances of convertible and other debt 4,946 5,008
Repayments of convertible and other debt (4,226) (3,700)
Collateralized lease repayments (168) (219)
Proceeds from exercises of stock options and other stock issuances 217 96
Principal payments on finance leases (154) (143)
Debt issuance costs   (30)
Purchase of convertible note hedges   (476)
Proceeds from issuance of warrants   174
Proceeds from investments by noncontrolling interests in subsidiaries 19 89
Distributions paid to noncontrolling interests in subsidiaries (110) (149)
Payments for buy-outs of noncontrolling interests in subsidiaries (2) (8)
Net cash provided by financing activities 2,831 1,490
Effect of exchange rate changes on cash and cash equivalents and restricted cash 14 5
Net increase in cash and cash equivalents and restricted cash 2,323 1,172
Cash and cash equivalents and restricted cash, beginning of period 6,783 4,277
Cash and cash equivalents and restricted cash, end of period 9,106 5,449
Supplemental Non-Cash Investing and Financing Activities    
Equity issued in connection with business combination   207
Acquisitions of property and equipment included in liabilities 668 287
Leased assets obtained in exchange for finance lease liabilities 54 469
Leased assets obtained in exchange for operating lease liabilities $ 187 $ 119