CONDENSED CONSOLIDATED STATEMENTS OF CASH FLOWS - USD ($) $ in Thousands | 3 Months Ended | 6 Months Ended | 12 Months Ended |
Jul. 31, 2023 | Jul. 31, 2022 | Jul. 31, 2023 | Jul. 31, 2022 | Jan. 31, 2023 |
Cash flows from operating activities: | | | | | |
Net loss | $ (111,000) | $ (210,000) | $ (230,000) | $ (453,000) | |
Adjustments to reconcile net loss to net cash provided by operating activities: | | | | | |
Stock-based compensation | | | 351,000 | 341,000 | |
Depreciation, amortization and accretion | | | 43,000 | 61,000 | |
Amortization of debt issuance costs | | | 2,000 | 2,000 | |
Amortization of deferred commissions | | | 49,000 | 39,000 | |
Deferred income taxes | | | 3,000 | 2,000 | |
Lease impairment charges | | | 25,000 | 0 | |
Gain on early extinguishment of debt | (42,000) | 0 | (73,000) | 0 | |
Net gain on strategic investments | | | 0 | (2,000) | |
Other, net | | | 4,000 | 2,000 | |
Changes in operating assets and liabilities: | | | | | |
Accounts receivable | | | 92,000 | 74,000 | |
Deferred commissions | | | (65,000) | (50,000) | |
Prepaid expenses and other assets | | | (14,000) | (2,000) | |
Operating lease right-of-use assets | | | 12,000 | 14,000 | |
Accounts payable | | | 1,000 | 24,000 | |
Accrued compensation | | | 24,000 | (55,000) | |
Accrued expenses and other liabilities | | | (4,000) | 1,000 | |
Operating lease liabilities | | | (20,000) | (13,000) | |
Deferred revenue | | | (18,000) | 15,000 | |
Net cash provided by operating activities | | | 182,000 | 0 | |
Cash flows from investing activities: | | | | | |
Capitalized software | | | (7,000) | (6,000) | |
Purchases of property and equipment | | | (2,000) | (7,000) | |
Purchases of securities available-for-sale and other | | | (577,000) | (571,000) | |
Proceeds from maturities and redemption of securities available-for-sale | | | 1,101,000 | 521,000 | |
Proceeds from sales of securities available-for-sale and other | | | 61,000 | 0 | |
Purchases of intangible assets | | | 0 | (2,000) | |
Payments for business acquisitions, net of cash acquired | | | (22,000) | (4,000) | |
Net cash provided by (used in) investing activities | | | 554,000 | (69,000) | |
Cash flows from financing activities: | | | | | |
Payments for repurchases of convertible senior notes | | | (671,000) | 0 | |
Payments for warrants related to convertible senior notes | (4,000) | | (4,000) | 0 | |
Proceeds from stock option exercises, net of repurchases | | | 8,000 | 9,000 | |
Proceeds from shares issued in connection with employee stock purchase plan | | | 26,000 | 19,000 | |
Net cash provided by (used in) financing activities | | | (641,000) | 28,000 | |
Effects of changes in foreign currency exchange rates on cash, cash equivalents and restricted cash | | | 2,000 | (6,000) | |
Net increase (decrease) in cash, cash equivalents and restricted cash | | | 97,000 | (47,000) | |
Cash, cash equivalents and restricted cash at beginning of period | | | 271,000 | 273,000 | $ 273,000 |
Cash, cash equivalents and restricted cash at end of period | 368,000 | 226,000 | 368,000 | 226,000 | 271,000 |
Cash paid during the period for: | | | | | |
Cash payments included in the measurement of operating lease liabilities | | | 24,000 | 18,000 | |
Non-cash activities: | | | | | |
Issuance of common stock for conversions of convertible senior notes | | | 0 | 40,000 | |
Benefit from exercise of hedges related to convertible senior notes | | | 2,000 | 18,000 | |
Operating lease right-of-use assets exchanged for lease liabilities | | | 5,000 | 8,000 | |
Reconciliation of cash, cash equivalents and restricted cash within the condensed consolidated balance sheets to the amounts shown in the condensed consolidated statements of cash flows above: | | | | | |
Cash and cash equivalents | 356,000 | 216,000 | 356,000 | 216,000 | 264,000 |
Restricted cash, current included in prepaid expenses and other current assets | 5,000 | 2,000 | 5,000 | 2,000 | |
Restricted cash, noncurrent included in other assets | 7,000 | 8,000 | 7,000 | 8,000 | |
Total cash, cash equivalents and restricted cash | $ 368,000 | $ 226,000 | $ 368,000 | $ 226,000 | $ 271,000 |