v3.24.2.u1
Cash, Cash Equivalents, and Investments (Tables)
6 Months Ended
Jul. 31, 2024
Organization, Consolidation and Presentation of Financial Statements [Abstract]  
Summary of Components of Cash and Cash Equivalents
Cash, cash equivalents, and investments consisted of the following as of the dates indicated (in thousands):

July 31, 2024January 31, 2024
Cash and cash equivalents:
Cash$45,024 $55,736 
Money market funds335,167 305,283 
Commercial paper5,482 994 
U.S. Treasury securities— 998 
Total cash and cash equivalents$385,673 $363,011 
Available-for-sale investments:
   U.S. Treasury securities $56,694 $50,036 
   Commercial paper20,192 2,886 
   Corporate debt securities106,043 131,259 
U.S. Government agency securities30,711 23,997 
Total available-for-sale investments$213,640 $208,178 
Summary of Components of Available-for-sale Investments
Cash, cash equivalents, and investments consisted of the following as of the dates indicated (in thousands):

July 31, 2024January 31, 2024
Cash and cash equivalents:
Cash$45,024 $55,736 
Money market funds335,167 305,283 
Commercial paper5,482 994 
U.S. Treasury securities— 998 
Total cash and cash equivalents$385,673 $363,011 
Available-for-sale investments:
   U.S. Treasury securities $56,694 $50,036 
   Commercial paper20,192 2,886 
   Corporate debt securities106,043 131,259 
U.S. Government agency securities30,711 23,997 
Total available-for-sale investments$213,640 $208,178 
Summary of Carrying Value of Available-for-sale Investments
The following tables summarize the amortized cost, net unrealized gains (losses), and fair value of the Company’s investments by significant investment category as of the dates indicated (in thousands). Gross realized gains or losses from sales of available-for-sale securities were not material for the three and six months ended July 31, 2024 and 2023.

July 31, 2024
Amortized CostUnrealized Gain (Loss), NetEstimated Fair Value
Available-for-sale investments:
U.S. Treasury securities$56,683 $11 $56,694 
Commercial paper20,205 (13)20,192 
Corporate debt securities106,150 (107)106,043 
U.S. Government agency securities30,760 (49)30,711 
Total available-for-sale investments$213,798 $(158)$213,640 
January 31, 2024
Amortized CostUnrealized Gain (Loss), NetEstimated Fair Value
Available-for-sale investments:
U.S. Treasury securities$50,012 $24 $50,036 
Commercial paper2,887 (1)2,886 
Corporate debt securities131,395 (136)131,259 
U.S. Government agency securities23,983 14 23,997 
Total available-for-sale investments$208,277 $(99)$208,178 
Summary of Contractual Maturities of Available-for-sale Securities
The following tables present the Company’s available-for-sale securities by contractual maturity date as of the dates indicated (in thousands):
July 31, 2024
Amortized Cost
Fair Value
Due within one year$173,611 $173,416 
Due between one to five years40,187 40,224 
Total$213,798 $213,640 
January 31, 2024
Amortized Cost
Fair Value
Due within one year$155,423 $155,158 
Due between one to five years52,854 53,020 
Total$208,277 $208,178