XML 75 R7.htm IDEA: XBRL DOCUMENT v3.20.1
CONDENSED CONSOLIDATED STATEMENTS OF CASH FLOWS - USD ($)
$ in Thousands
9 Months Ended
Apr. 30, 2020
Apr. 30, 2019
Cash flows from operating activities:    
Net loss $ (687,535) $ (426,841)
Adjustments to reconcile net loss to net cash provided by (used in) operating activities:    
Depreciation and amortization 69,715 55,740
Stock-based compensation 259,137 233,322
Change in fair value of contingent consideration 0 (832)
Amortization of debt discount and issuance costs 23,290 21,802
Operating lease cost, net of accretion 22,340 0
Impairment of lease-related assets 3,002 0
Other (33) (1,837)
Changes in operating assets and liabilities:    
Accounts receivable, net 9,027 16,734
Deferred commissions (47,063) (24,819)
Prepaid expenses and other assets 12,371 (5,095)
Accounts payable (5,675) 18,461
Accrued compensation and benefits (11,456) (10,366)
Accrued expenses and other liabilities (1,333) (31,180)
Operating leases, net (21,076) 0
Deferred revenue 211,774 206,735
Net cash provided by operating activities (163,515) 51,824
Cash flows from investing activities:    
Maturities of investments 498,611 460,563
Purchases of investments (524,568) (324,581)
Sales of investments 70,878 0
Purchases of property and equipment (72,073) (94,815)
Payments for business combinations, net of cash and restricted cash acquired 0 (19,017)
Net cash provided by (used in) investing activities (27,152) 22,150
Cash flows from financing activities:    
Proceeds from sales of shares through employee equity incentive plans, net of repurchases 56,515 67,277
Payment of contingent consideration associated with a business combination 0 (1,040)
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 56,515 65,171
Net increase (decrease) in cash, cash equivalents and restricted cash (134,152) 139,145
Cash, cash equivalents and restricted cash—beginning of period 399,520 307,098
Cash, cash equivalents and restricted cash—end of period 265,368 446,243
Restricted cash [1] 3,037 1,124
Cash and cash equivalents—end of period 262,331 445,119
Supplemental disclosures of cash flow information:    
Cash paid for income taxes 14,658 26,731
Supplemental disclosures of non-cash investing and financing information:    
Issuance of common stock in connection with business combinations 0 103,305
Purchases of property and equipment included in accounts payable and accrued liabilities 7,934 11,671
Vesting of early exercised stock options $ 0 $ 157
[1] Included within other assets—non-current in the condensed consolidated balance sheets.