v3.20.2
Condensed Consolidated Statements of Cash Flows - USD ($)
$ in Thousands
6 Months Ended
Jun. 30, 2020
Jun. 30, 2019
Cash flows from operating activities:    
Net income (loss) $ 88,997 $ (12,624)
Adjustments to reconcile net income (loss) to net cash provided by operating activities:    
Depreciation and amortization 158,628 115,777
Amortization of deferred commissions 101,215 79,531
Amortization of debt discount and issuance costs 17,058 16,437
Stock-based compensation 405,125 329,210
Deferred income taxes (3,177) (3,073)
Repayments of convertible senior notes attributable to debt discount (1,975) 0
Unrealized gains on non-marketable securities (1,944) (2,932)
Other 1,302 (391)
Changes in operating assets and liabilities, net of effect of business combinations:    
Accounts receivable 200,015 71,354
Deferred commissions (143,981) (97,194)
Prepaid expenses and other assets (32,429) (28,483)
Accounts payable 37,324 25,093
Deferred revenue 69,248 100,190
Accrued expenses and other liabilities (35,784) 11,688
Net cash provided by operating activities 859,622 604,583
Cash flows from investing activities:    
Purchases of property and equipment (193,671) (97,020)
Business combinations, net of cash acquired (82,948) 0
Purchases of intangibles (6,500) (36,160)
Purchases of investments (1,107,738) (800,641)
Sales and maturities of investments 765,384 508,318
Realized gains (losses) on derivatives not designated as hedging instruments, net (2,636) 22,113
Net cash used in investing activities (628,109) (403,390)
Cash flows from financing activities:    
Repayments of convertible senior notes attributable to principal (15,738) 0
Proceeds from employee stock plans 91,056 63,300
Taxes paid related to net share settlement of equity awards (238,557) (247,619)
Net cash used in financing activities (163,239) (184,319)
Foreign currency effect on cash, cash equivalents and restricted cash (4,862) 1,286
Net increase in cash, cash equivalents and restricted cash 63,412 18,160
Cash, cash equivalents and restricted cash at beginning of period 777,991 568,538
Cash, cash equivalents and restricted cash at end of period 841,403 586,698
Cash, cash equivalents and restricted cash at end of period:    
Total cash, cash equivalents and restricted cash shown in the condensed consolidated statements of cash flows $ 841,403 586,698
Supplemental disclosures of other cash flow information:    
Income taxes paid, net of refunds   10,560
Non-cash investing and financing activities:    
Settlement of 2022 Notes conversion feature   0
Benefit from exercise of 2022 Note Hedge   0
Property and equipment included in accounts payable and accrued expenses   $ 31,940