v3.20.2
Consolidated Statements of Cash Flows (Unaudited) - USD ($)
$ in Millions
9 Months Ended
Sep. 30, 2020
Sep. 30, 2019
Cash Flows from Operating Activities    
Net income (loss) $ 566 $ (907)
Adjustments to reconcile net income (loss) to net cash provided by operating activities:    
Depreciation, amortization and impairment 1,704 1,577
Stock-based compensation 1,101 617
Amortization of debt discounts and issuance costs 144 138
Inventory and purchase commitments write-downs 140 167
Loss on disposals of fixed assets 67 69
Foreign currency transaction net loss (gain) 144 (102)
Non-cash interest and other operating activities 116 189
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 (550) (150)
Inventory (602) (485)
Operating lease vehicles (640) (467)
Prepaid expenses and other current assets (290) (236)
Other non-current assets (105) 46
Accounts payable and accrued liabilities 765 143
Deferred revenue 118 625
Customer deposits (15) (114)
Other long-term liabilities 261 58
Net cash provided by operating activities 2,924 980
Cash Flows from Investing Activities    
Purchases of property and equipment excluding finance leases, net of sales (2,006) (915)
Purchases of solar energy systems, net of sales (62) (68)
Receipt of government grants 1  
Purchase of intangible assets (5) (5)
Business combinations, net of cash acquired (13) (45)
Net cash used in investing activities (2,085) (1,033)
Cash Flows from Financing Activities    
Proceeds from issuances of common stock in public offerings, net of issuance costs 7,282 848
Proceeds from issuances of convertible and other debt 7,826 7,119
Repayments of convertible and other debt (7,537) (5,601)
Collateralized lease repayments (224) (302)
Proceeds from exercises of stock options and other stock issuances 361 167
Principal payments on finance leases (248) (223)
Debt issuance costs (6) (32)
Purchase of convertible note hedges   (476)
Proceeds from issuance of warrants   174
Proceeds from investments by noncontrolling interests in subsidiaries 23 153
Distributions paid to noncontrolling interests in subsidiaries (163) (211)
Payments for buy-outs of noncontrolling interests in subsidiaries (33) (8)
Net cash provided by financing activities 7,281 1,608
Effect of exchange rate changes on cash and cash equivalents and restricted cash 100 (6)
Net increase in cash and cash equivalents and restricted cash 8,220 1,549
Cash and cash equivalents and restricted cash, beginning of period 6,783 4,277
Cash and cash equivalents and restricted cash, end of period 15,003 5,826
Supplemental Non-Cash Investing and Financing Activities    
Equity issued in connection with business combination   207
Acquisitions of property and equipment included in liabilities 913 375
Leased assets obtained in exchange for finance lease liabilities 116 497
Leased assets obtained in exchange for operating lease liabilities $ 333 $ 172