XML 19 R7.htm IDEA: XBRL DOCUMENT v3.22.1
CONDENSED CONSOLIDATED STATEMENTS OF CASH FLOWS - USD ($)
$ in Thousands
9 Months Ended
Apr. 30, 2022
Apr. 30, 2021
Cash flows from operating activities:    
Net loss $ (646,548) $ (676,078)
Adjustments to reconcile net loss to net cash (used in) provided by operating activities:    
Depreciation and amortization 67,123 70,609
Stock-based compensation 263,098 268,938
Change in fair value of derivative liability 198,038 81,353
Loss on debt extinguishment 64,910 0
Amortization of debt discount and issuance costs 29,929 46,178
Operating lease cost, net of accretion 27,496 25,818
Impairment of lease-related assets 0 2,822
Non-cash interest expense 14,408 11,331
Other 7,181 7,025
Changes in operating assets and liabilities:    
Accounts receivable, net 4,193 102,029
Deferred commissions (10,377) (94,034)
Prepaid expenses and other assets (31,723) (4,375)
Accounts payable 4,159 542
Accrued compensation and benefits (46,379) 17,523
Accrued expenses and other liabilities 4,509 4,039
Operating leases, net (35,743) (26,864)
Deferred revenue 115,265 87,964
Net cash (used in) provided by operating activities 29,539 (75,180)
Cash flows from investing activities:    
Maturities of investments 778,914 486,640
Purchases of investments (794,180) (1,145,335)
Sales of investments 17,999 70,055
Purchases of property and equipment (34,279) (41,111)
Net cash used in investing activities (31,546) (629,751)
Cash flows from financing activities:    
Payments of debt extinguishment costs (14,709) 0
Proceeds from unwinding of convertible note hedges 39,880 0
Payments for unwinding of warrants (18,390) 0
Proceeds from sales of shares through employee equity incentive plans 66,644 62,343
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 (626) 0
Net cash provided by financing activities 102,916 660,881
Net (decrease) increase in cash, cash equivalents and restricted cash 100,909 (44,050)
Cash, cash equivalents and restricted cash—beginning of period 288,873 321,991
Cash, cash equivalents and restricted cash—end of period 389,782 277,941
Restricted cash [1] 3,061 3,265
Cash and cash equivalents—end of period 386,721 274,676
Supplemental disclosures of cash flow information:    
Cash paid for income taxes 17,101 13,220
Supplemental disclosures of non-cash investing and financing information:    
Purchases of property and equipment included in accounts payable and accrued and other liabilities 20,026 12,583
Finance lease liabilities arising from obtaining right-of-use assets $ 11,159 $ 5,769
[1] Included within other assets—non-current in the condensed consolidated balance sheets.