XML 20 R7.htm IDEA: XBRL DOCUMENT v3.21.2
CONDENSED CONSOLIDATED STATEMENTS OF CASH FLOWS - USD ($)
$ in Thousands
3 Months Ended
Oct. 31, 2021
Oct. 31, 2020
Cash flows from operating activities:    
Net loss $ (419,852) $ (265,048)
Adjustments to reconcile net loss to net cash (used in) provided by operating activities:    
Depreciation and amortization 23,291 23,499
Stock-based compensation 90,547 89,198
Change in fair value of derivative liability 198,038 64,740
Loss on debt extinguishment 64,910  
Amortization of debt discount and issuance costs 9,831 11,708
Operating lease cost, net of accretion 9,189 8,347
Impairment of lease-related assets   2,822
Non-cash interest expense 4,773 1,952
Other 3,072 1,671
Changes in operating assets and liabilities:    
Accounts receivable, net 64,740 60,094
Deferred commissions (6,225) (28,230)
Prepaid expenses and other assets 6,751 6,222
Accounts payable (3,139) (4,075)
Accrued compensation and benefits (39,965) 10,041
Accrued expenses and other liabilities (6,207) (1,238)
Operating leases, net (12,323) (7,970)
Deferred revenue 19,508 22,194
Net cash (used in) provided by operating activities 6,939 (4,073)
Cash flows from investing activities:    
Maturities of investments 272,024 97,578
Purchases of investments (290,050) (513,998)
Sales of investments 17,999  
Purchases of property and equipment (8,844) (12,252)
Net cash used in investing activities (8,871) (428,672)
Cash flows from financing activities:    
Payments of debt extinguishment costs (14,709)  
Proceeds from unwinding of convertible note hedges 39,880  
Payments for unwinding of warrants (18,390)  
Proceeds from sales of shares through employee equity incentive plans 30,139 19,600
Proceeds from the issuance of convertible notes, net of issuance costs 89,128 723,757
Repurchases of common stock (58,570) (125,079)
Payment of finance lease obligations (219)  
Net cash provided by financing activities 67,259 618,278
Net increase in cash, cash equivalents and restricted cash 65,327 185,533
Cash, cash equivalents and restricted cash—beginning of period 288,873 321,991
Cash, cash equivalents and restricted cash—end of period 354,200 507,524
Restricted cash [1] 3,215 3,042
Cash and cash equivalents—end of period 350,985 504,482
Supplemental disclosures of cash flow information:    
Cash paid for income taxes 6,181 5,050
Supplemental disclosures of non-cash investing and financing information:    
Purchases of property and equipment included in accounts payable and accrued and other liabilities 12,099 $ 2,948
Finance lease liabilities arising from obtaining right-of-use assets 7,857  
Convertible senior notes offering costs included in accrued liabilities $ 700  
[1] Included within other assets—non-current in the condensed consolidated balance sheets.