v3.22.4
Cash Equivalents and Short-Term Investments (Tables)
6 Months Ended
Jan. 31, 2023
Cash and Cash Equivalents [Abstract]  
Schedule of Cash Equivalents and Short-Term Investments
Cash equivalents and short-term investments consisted of the following as of January 31, 2023:
Amortized
Cost
Unrealized
Gains
Unrealized
Losses

Fair Value
Cash equivalents:(in thousands)
Money market funds$436,581 $— $— $436,581 
U.S. treasury securities26,933 — (2)26,931 
U.S. government agency securities369,324 — (79)369,245 
Corporate debt securities117,303 — — 117,303 
Total cash equivalents$950,141 $— $(81)$950,060 
Short-term investments:
U.S. treasury securities$31,533 $40 $— $31,573 
U.S. government agency securities276,278 — (6,471)269,807 
Corporate debt securities350,578 337 (3,963)346,952 
Total short-term investments$658,389 $377 $(10,434)$648,332 
Total cash equivalents and short-term investments$1,608,530 $377 $(10,515)$1,598,392 
Cash equivalents and short-term investments consisted of the following as of July 31, 2022:
Amortized
Cost
Unrealized
Gains
Unrealized
Losses

Fair Value
Cash equivalents:(in thousands)
Money market funds$247,613 $— $— $247,613 
U.S. treasury securities202,778 — (70)202,708 
U.S. government agency securities135,525 (38)135,489 
Corporate debt securities106,272 — — 106,272 
Total cash equivalents$692,188 $$(108)$692,082 
Short-term investments:
U.S. treasury securities$96,089 $10 $(251)$95,848 
U.S. government agency securities339,957 (6,628)333,335 
Corporate debt securities293,968 — (5,022)288,946 
Total short-term investments$730,014 $16 $(11,901)$718,129 
Total cash equivalents and short-term investments$1,422,202 $18 $(12,009)$1,410,211 
Schedule of Maturities
The amortized cost and fair value of our short-term investments based on their stated maturities consisted of the following as of January 31, 2023:
Amortized
Cost
Fair Value
(in thousands)
Due within one year$427,636 $423,153 
Due between one to three years230,753 225,179 
Total$658,389 $648,332 
Schedule of Unrealized Loss on Investments
Short-term investments that were in an unrealized loss position as of January 31, 2023 consisted of the following:
Less than 12 MonthsGreater than 12 MonthsTotal
Fair
Value
Unrealized
Losses
Fair
Value
Unrealized
Losses
Fair
Value
Unrealized
Losses
(in thousands)
U.S. treasury securities$24,983 $— $— $— $24,983 $— 
U.S. government agency securities75,709 (23)183,088 (6,448)258,797 (6,471)
Corporate debt securities49,577 (181)141,110 (3,782)190,687 (3,963)
Total$150,269 $(204)$324,198 $(10,230)$474,467 $(10,434)
Short-term investments that were in an unrealized loss position as of July 31, 2022 consisted of the following:
Less than 12 MonthsGreater than 12 MonthsTotal
Fair
Value
Unrealized
Losses
Fair
Value
Unrealized
Losses
Fair
Value
Unrealized
Losses
(in thousands)
U.S. treasury securities$80,833 $(251)$— $— $80,833 $(251)
U.S. government agency securities230,670 (5,150)50,134 (1,478)280,804 (6,628)
Corporate debt securities155,968 (3,947)71,127 (1,075)227,095 (5,022)
Total $467,471 $(9,348)$121,261 $(2,553)$588,732 $(11,901)