XML 30 R7.htm IDEA: XBRL DOCUMENT v3.22.2.2
CONSOLIDATED STATEMENTS OF CASH FLOWS - USD ($)
$ in Thousands
12 Months Ended
Jul. 31, 2022
Jul. 31, 2021
Jul. 31, 2020
Cash flows from operating activities:      
Net loss $ (797,538) $ (1,034,260) $ (872,883)
Adjustments to reconcile net loss to net cash (used in) provided by operating activities      
Depreciation and amortization 87,952 94,373 93,773
Stock-based compensation 343,246 358,545 351,998
Change in fair value of derivative liability 198,038 269,265  
Loss on debt extinguishment 64,910    
Amortization of debt discount and issuance cost 40,233 63,859 31,313
Operating lease cost, net of accretion 36,905 34,757 30,374
Impairment and early exit of lease-related assets 597 1,420 3,002
Non-cash interest expense 19,270 16,074  
Other 9,282 6,380 324
Changes in operating assets and liabilities:      
Accounts receivable, net 60,998 64,483 4,334
Deferred commissions (24,170) (127,891) (61,816)
Prepaid expenses and other assets (36,166) 4,057 10,089
Accounts payable (1,461) (5,762) (16,574)
Accrued compensation and benefits (19,674) 50,916 18,765
Accrued expenses and other liabilities 4,049 14,824 3,400
Operating leases, net (46,773) (37,582) (28,394)
Deferred revenue 127,845 126,732 272,410
Net cash (used in) provided by operating activities 67,543 (99,810) (159,885)
Cash flows from investing activities:      
Maturities of investments 1,058,116 784,176 645,828
Purchases of investments (1,081,246) (1,392,737) (607,194)
Sales of investments 17,999 70,055 75,413
Purchases of property and equipment (49,058) (58,647) (89,488)
Net cash provided by (used in) investing activities (54,189) (597,153) 24,559
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 67,826 65,766 57,797
Proceeds from the issuance of convertible notes, net of issuance costs 88,687 723,617  
Repurchases of common stock (58,570) (125,079)  
Payment of finance lease obligations (1,089) (459)  
Net cash provided by financing activities 103,635 663,845 57,797
Net (decrease) increase in cash, cash equivalents and restricted cash 116,989 (33,118) (77,529)
Cash, cash equivalents and restricted cash—beginning of period 288,873 321,991 399,520
Cash, cash equivalents and restricted cash—end of period 405,862 288,873 321,991
Restricted cash [1] 3,012 3,150 3,254
Cash and cash equivalents—end of period 402,850 285,723 318,737
Supplemental disclosures of cash flow information:      
Cash paid for income taxes 20,353 16,639 16,625
Supplemental disclosures of non-cash investing and financing information:      
Purchases of property and equipment included in accounts payable and accrued liabilities 17,139 12,832 $ 4,630
Finance lease liabilities arising from obtaining right-of-use assets $ 10,491 $ 8,299  
[1] Included within other assets—non-current in the consolidated balance sheets.