Cash Equivalents and Marketable Securities (Tables)
|
6 Months Ended |
Oct. 31, 2024 |
| Investments, Debt and Equity Securities [Abstract] |
|
| Schedule of Available-For-Sale Debt Securities and Balance Sheet Classification |
The following table summarizes the Company’s cash equivalents and available-for-sale marketable securities (in thousands): | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | As of October 31, 2024 | | As of April 30, 2024 | | Amortized Cost | | Gross Unrealized Gains | | Gross Unrealized Losses | | Estimated Fair Value | | Amortized Cost | | Gross Unrealized Gains | | Gross Unrealized Losses | | Estimated Fair Value | | Cash equivalents: | | | | | | | | | | | | | | | | | Money market funds | $ | 61,121 | | | $ | — | | | $ | — | | | $ | 61,121 | | | $ | 82,564 | | | $ | — | | | $ | — | | | $ | 82,564 | | | Commercial paper | 8,115 | | | — | | | — | | | 8,115 | | | 18,769 | | | — | | | — | | | 18,769 | | | U.S. treasury securities | 999 | | | — | | | — | | | 999 | | | 5,888 | | | — | | | — | | | 5,888 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Available-for-sale marketable securities: | | | | | | | | | | | | | | | | | U.S. treasury securities | 13,328 | | | 14 | | | (1) | | | 13,341 | | | 2,497 | | | — | | | — | | | 2,497 | | | Certificates of deposit | 68,715 | | | — | | | — | | | 68,715 | | | 62,017 | | | — | | | — | | | 62,017 | | | U.S. government agencies securities | 65,694 | | | 121 | | | (151) | | | 65,664 | | | 46,527 | | | 5 | | | (104) | | | 46,428 | | | Commercial paper | 113,959 | | | — | | | — | | | 113,959 | | | 162,183 | | | — | | | — | | | 162,183 | | | Corporate debt securities | 346,881 | | | 826 | | | (286) | | | 347,421 | | | 310,557 | | | 64 | | | (526) | | | 310,095 | | | Total cash equivalents and available-for-sale marketable securities | $ | 678,812 | | | $ | 961 | | | $ | (438) | | | $ | 679,335 | | | $ | 691,002 | | | $ | 69 | | | $ | (630) | | | $ | 690,441 | |
|
| Summary of Available-For-Sale Debt Securities by Contractual Maturity |
The following table summarizes the Company’s available-for-sale marketable securities by contractual maturity (in thousands): | | | | | | | | | | | | | | | | | | | | | | | | | As of October 31, 2024 | | As of April 30, 2024 | | Amortized Cost | | Fair Value | | Amortized Cost | | Fair Value | | Within one year | $ | 482,694 | | | $ | 483,395 | | | $ | 514,747 | | | $ | 514,484 | | | After one year through five years | 125,883 | | | 125,705 | | | 69,034 | | | 68,736 | | | Total | $ | 608,577 | | | $ | 609,100 | | | $ | 583,781 | | | $ | 583,220 | |
|
| Summary of Available-For-Sale Marketable Securities, Fair Values and Unrealized Losses |
The following table summarizes the fair values and unrealized losses of the Company’s available-for-sale marketable securities classified by length of time that the securities have been in a continuous unrealized loss position but were not deemed to be other-than-temporarily impaired (in thousands): | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | As of October 31, 2024 | | Less Than 12 Months | | 12 Months or Greater | | Total | | Unrealized Losses | | Fair Value | | Unrealized Losses | | Fair Value | | Unrealized Losses | | Fair Value | | U.S. treasury securities | $ | (1) | | | $ | 3,192 | | | $ | — | | | $ | — | | | $ | (1) | | | $ | 3,192 | | | | | | | | | | | | | | | U.S. government agencies securities | (151) | | | 18,790 | | | — | | | — | | | (151) | | | 18,790 | | | Commercial paper | — | | | 3,472 | | | — | | | — | | | — | | | 3,472 | | | Corporate debt securities | (286) | | | 47,329 | | | — | | | 2,000 | | | (286) | | | 49,329 | | | Total | $ | (438) | | | $ | 72,783 | | | $ | — | | | $ | 2,000 | | | $ | (438) | | | $ | 74,783 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | As of April 30, 2024 | | Less Than 12 Months | | 12 Months or Greater | | Total | | Unrealized Losses | | Fair Value | | Unrealized Losses | | Fair Value | | Unrealized Losses | | Fair Value | | U.S. treasury securities | $ | — | | | $ | 2,497 | | | $ | — | | | $ | — | | | $ | — | | | $ | 2,497 | | | | | | | | | | | | | | | U.S. government agencies securities | (99) | | | 33,890 | | | (6) | | | 7,749 | | | (105) | | | 41,639 | | | Commercial paper | — | | | 4,058 | | | — | | | — | | | — | | | 4,058 | | | Corporate debt securities | (491) | | | 196,907 | | | (34) | | | 27,658 | | | (525) | | | 224,565 | | | Total | $ | (590) | | | $ | 237,352 | | | $ | (40) | | | $ | 35,407 | | | $ | (630) | | | $ | 272,759 | |
|