XML 18 R7.htm IDEA: XBRL DOCUMENT v3.23.1
CONDENSED CONSOLIDATED STATEMENTS OF CASH FLOWS - USD ($)
$ in Thousands
3 Months Ended 6 Months Ended 12 Months Ended
Jan. 31, 2023
Oct. 31, 2022
Jan. 31, 2022
Oct. 31, 2021
Jan. 31, 2023
Jan. 31, 2022
Jul. 31, 2022
Cash flows from operating activities:              
Net loss $ (70,790) $ (99,514) $ (115,416) $ (420,206) $ (170,304) $ (535,622)  
Adjustments to reconcile net loss to net cash (used in) provided by operating activities:              
Depreciation and amortization         39,479 45,582  
Stock-based compensation         166,245 178,592  
Change in fair value of derivative liability         0 198,038  
Loss on debt extinguishment         0 64,910  
Amortization of debt discount and issuance costs         21,082 19,796  
Operating lease cost, net of accretion         18,158 18,336  
Early exit of lease-related assets         (1,109) 0  
Non-cash interest expense         9,817 9,575  
Other         (2,427) 5,156  
Changes in operating assets and liabilities:              
Accounts receivable, net         (28,649) 23,826  
Deferred commissions         19,110 (13,332)  
Prepaid expenses and other assets         (28,348) (4,951)  
Accounts payable         (3,171) (2,391)  
Accrued compensation and benefits         (11,467) (19,496)  
Accrued expenses and other liabilities         52,423 (2,662)  
Operating leases, net         (19,965) (23,619)  
Deferred revenue         78,723 70,968  
Net cash (used in) provided by operating activities         139,597 32,706  
Cash flows from investing activities:              
Maturities of investments         529,112 568,697  
Purchases of investments         (508,984) (556,148)  
Sales of investments         0 17,999  
Purchases of property and equipment         (30,772) (17,390)  
Net cash used in investing activities         (10,644) 13,158  
Cash flows from financing activities:              
Repayment of convertible notes         (145,704) 0  
Payments of debt extinguishment costs         0 (14,709)  
Proceeds from unwinding of convertible note hedges         0 39,880  
Payments for unwinding of warrants         0 (18,390)  
Proceeds from sales of shares through employee equity incentive plans         22,896 32,053  
Proceeds from the issuance of convertible notes, net of issuance costs         0 89,128  
Repurchases of common stock         0 (58,570)  
Payment of finance lease obligations         (2,344) (323)  
Net cash provided by (used in) financing activities         (125,152) 69,069  
Net (decrease) increase in cash, cash equivalents and restricted cash         3,801 114,933  
Cash, cash equivalents and restricted cash—beginning of period   $ 405,862   $ 288,873 405,862 288,873 $ 288,873
Cash, cash equivalents and restricted cash—end of period 409,663   403,806   409,663 403,806 405,862
Restricted cash [1] 3,062   3,057   3,062 3,057  
Cash and cash equivalents—end of period $ 406,601   $ 400,749   406,601 400,749 $ 402,850
Supplemental disclosures of cash flow information:              
Cash paid for income taxes         16,191 12,084  
Supplemental disclosures of non-cash investing and financing information:              
Purchases of property and equipment included in accounts payable and accrued and other liabilities         18,646 18,939  
Finance lease liabilities arising from obtaining right-of-use assets         9,567 11,148  
Convertible senior notes offering costs included in accrued liabilities         $ 0 $ 693  
[1] Included within other assets—non-current in the condensed consolidated balance sheets.