Investments and Fair Value Measurements | 4. Investments and Fair Value Measurements The following table sets forth the financial assets, measured at fair value, by level within the fair value hierarchy on a recurring basis and indicates the fair value hierarchy of the valuation inputs used to determine such fair value (in thousands): Fair Value Measurement as of April 30, 2024 Fair Value Level Amortized Cost Gross Unrealized Gains Gross Unrealized Losses Estimated Fair Value Assets: Cash and cash equivalents: Money market funds Level 1 $ 46,939 $ — $ — $ 46,939 U.S. treasury securities Level 2 3,991 — — 3,991 Total assets measured at fair value included in cash and cash equivalents $ 50,930 $ — $ — $ 50,930 Short-term Investments: U.S. treasury securities Level 2 230,555 2 (580) 229,977 U.S. agency obligations Level 2 55,160 — (77) 55,083 Corporate notes and bonds Level 2 169,442 25 (566) 168,901 Commercial paper Level 2 43,784 — — 43,784 Certificates of deposit Level 2 215,354 — — 215,354 Total short-term investments $ 714,295 $ 27 $ (1,223) $ 713,099 Derivative instruments: Foreign currency forward contracts Level 2 — 49 — 49 Total assets measured at fair value $ 765,225 $ 76 $ (1,223) $ 764,078 Liabilities: Derivative instruments: Foreign currency forward contracts Level 2 $ — $ — $ (890) $ (890) Total derivative instruments — — (890) (890) Total liabilities measured at fair value $ — $ — $ (890) $ (890) The following table summarizes the respective fair value and the classification by level within the fair value hierarchy (in thousands): Fair Value Measurement as of January 31, 2024 Fair Value Level Amortized Cost Gross Unrealized Gains Gross Unrealized Losses Estimated Fair Value Assets: Cash and cash equivalents: Money market funds Level 1 $ 63,137 $ — $ — $ 63,137 U.S. treasury securities Level 2 9,495 — — 9,495 Commercial paper Level 2 10,981 — — 10,981 Total assets measured at fair value included in cash and cash equivalents $ 83,613 $ — $ — $ 83,613 Short-term Investments: U.S. treasury securities Level 2 $ 244,778 $ 150 $ (141) $ 244,787 U.S. agency obligations Level 2 79,693 50 (23) 79,720 Corporate notes and bonds Level 2 103,552 141 (70) 103,623 Commercial paper Level 2 46,523 — — 46,523 Certificates of deposit Level 2 40,510 — — 40,510 Total short-term investments $ 515,056 $ 341 $ (234) $ 515,163 Derivative instruments: Foreign currency forward contracts Level 2 — — 18 18 Total assets measured at fair value $ 598,669 $ 341 $ (216) $ 598,794 Liabilities: Derivative instruments: Foreign currency forward contracts Level 2 $ — $ — $ 518 $ 518 Total derivative instruments — — 518 518 Total liabilities measured at fair value $ — $ — $ 518 $ 518 The Company classifies its highly liquid money market funds within Level 1 of the fair value hierarchy because they are valued based on quoted market prices in active markets. The Company classifies its corporate notes and bonds, U.S. treasury securities, U.S. agency obligations, commercial paper, certificate of deposits and foreign currency forward contracts within Level 2 of the fair value hierarchy because they are valued using inputs other than quoted prices that are directly or indirectly observable in the market, including readily available pricing sources for the identical underlying security that may not be actively traded. There were no transfers between fair value measurement levels during the three months ended April 30, 2024 and 2023. The Company does not hold any marketable securities that have been in a continuous unrealized loss position for over 12 months. As of April 30, 2024, the declines in the market value of the Company's short-term investment portfolio were not driven by credit related factors. As of April 30, 2024, the Company determined that it does not intend to sell any securities with a decline in market value, and it is more likely than not that the Company will be able to hold these securities until maturity or a recovery of the cost basis. Therefore no allowance for expected credit losses was recorded as of April 30, 2024. Realized gains (losses) were not material for the three months ended April 30, 2024. The following table summarizes the contractual maturities of the Company’s short-term investments (in thousands): As of April 30, 2024 Amortized Cost Fair Value Due within one year $ 561,377 $ 560,935 Due after one year through five years 152,918 152,164 Total $ 714,295 $ 713,099 As of January 31, 2024 Amortized Cost Fair Value Due within one year $ 447,001 446,902 Due after one year through five years 68,055 68,261 Total $ 515,056 $ 515,163 |