XML 39 R7.htm IDEA: XBRL DOCUMENT v3.19.3.a.u2
CONDENSED CONSOLIDATED STATEMENTS OF CASH FLOWS - USD ($)
$ in Thousands
6 Months Ended
Jan. 31, 2020
Jan. 31, 2019
Cash flows from operating activities:    
Net loss $ (446,864) $ (217,028)
Adjustments to reconcile net loss to net cash provided by (used in) operating activities:    
Depreciation and amortization 45,540 35,005
Stock-based compensation 167,041 138,490
Change in fair value of contingent consideration 0 (795)
Amortization of debt discount and issuance costs 15,398 14,415
Operating lease cost, net of accretion 14,539 0
Impairment of lease-related assets 3,002 0
Other (236) (1,121)
Changes in operating assets and liabilities:    
Accounts receivable, net (1,848) 13,579
Deferred commissions (35,422) (15,655)
Prepaid expenses and other assets 9,064 (16,495)
Accounts payable (3,428) 7,554
Accrued compensation and benefits 20,085 1,062
Accrued expenses and other liabilities 974 (19,029)
Operating leases, net (13,039) 0
Deferred revenue 146,540 148,332
Net cash provided by operating activities (78,654) 88,314
Cash flows from investing activities:    
Maturities of investments 299,380 297,596
Purchases of investments (416,636) (167,066)
Sales of investments 24,147 0
Purchases of property and equipment (39,451) (72,383)
Payments for business combinations, net of cash and restricted cash acquired 0 (18,662)
Net cash provided by (used in) investing activities (132,560) 39,485
Cash flows from financing activities:    
Proceeds from sales of shares through employee equity incentive plans, net of repurchases 26,486 33,364
Payment of debt in conjunction with business combinations 0 (991)
Payment of issuance costs related to convertible senior notes 0 (75)
Net cash provided by financing activities 26,486 32,298
Net increase (decrease) in cash, cash equivalents and restricted cash (184,728) 160,097
Cash, cash equivalents and restricted cash—beginning of period 399,520 307,098
Cash, cash equivalents and restricted cash—end of period 214,792 467,195
Restricted cash [1] 3,099 1,185
Cash and cash equivalents—end of period 211,693 466,010
Supplemental disclosures of cash flow information:    
Cash paid for income taxes 11,195 24,023
Supplemental disclosures of non-cash investing and financing information:    
Issuance of common stock in connection with business combinations 0 102,978
Purchases of property and equipment included in accounts payable and accrued liabilities 13,997 9,026
Vesting of early exercised stock options $ 0 $ 120
[1]
Included within other assets—non-current in the condensed consolidated balance sheets.