Corporate Investments and Funds Held for Clients | (4) Corporate Investments and Funds Held for Clients Corporate investments and funds held for clients consisted of the following: June 30, 2022 Type of Issue Amortized Gross Gross Fair value Cash and cash equivalents $ 139,756 $ — $ — $ 139,756 Funds held for clients' cash and cash equivalents 3,653,699 — (2) 3,653,697 Available-for-sale securities: Commercial paper 58,166 — (126) 58,040 Corporate bonds 59,568 — (1,715) 57,853 Asset-backed securities 9,843 2 (141) 9,704 Certificates of deposit 31,879 — (43) 31,836 U.S treasury securities 167,566 12 (591) 166,987 U.S government agency securities 8,000 — (451) 7,549 Other 2,181 — (71) 2,110 Total available-for-sale securities 337,203 14 (3,138) 334,079 Total investments $ 4,130,658 $ 14 $ (3,140) $ 4,127,532 June 30, 2023 Type of Issue Amortized Gross Gross Fair value Cash and cash equivalents $ 288,767 $ — $ — $ 288,767 Funds held for clients' cash and cash equivalents 2,132,545 — — 2,132,545 Available-for-sale securities: Commercial paper 110,003 12 (138) 109,877 Corporate bonds 112,262 18 (1,867) 110,413 Asset-backed securities 30,061 10 (337) 29,734 Certificates of deposit 68,247 5 (93) 68,159 U.S treasury securities 158,839 — (2,839) 156,000 U.S government agency securities 8,000 — (513) 7,487 Other 7,329 — (129) 7,200 Total available-for-sale securities 494,741 45 (5,916) 488,870 Total investments $ 2,916,053 $ 45 $ (5,916) $ 2,910,182 All available-for-sale securities were included in Funds held for clients at June 30, 2022 and 2023. Cash and cash equivalents and funds held for clients’ cash and cash equivalents included demand deposit accounts, money market funds, commercial paper and certificates of deposit as of June 30, 2022 and 2023. Classification of investments on the consolidated balance sheets was as follows: June 30, 2022 2023 Cash and cash equivalents $ 139,756 $ 288,767 Funds held for clients 3,987,776 2,621,415 Total investments $ 4,127,532 $ 2,910,182 Available-for-sale securities that have been in an unrealized loss position for a period of less and greater than 12 months as of June 30, 2022 and June 30, 2023 had fair market value as follows: June 30, 2022 Securities in an unrealized loss Securities in an unrealized loss Total Gross Fair Gross unrealized losses Fair value Gross unrealized losses Fair value Commercial paper $ (126) $ 53,756 $ — $ — $ (126) $ 53,756 Corporate bonds (1,715) 57,853 — — (1,715) 57,853 Asset-backed securities (141) 7,354 — — (141) 7,354 Certificates of deposit (43) 27,086 — — (43) 27,086 U.S. treasury securities (591) 129,943 — — (591) 129,943 U.S. government agency securities (451) 7,549 — — (451) 7,549 Other (71) 2,110 — — (71) 2,110 Total available-for-sale securities $ (3,138) $ 285,651 $ — $ — $ (3,138) $ 285,651 June 30, 2023 Securities in an unrealized loss Securities in an unrealized loss Total Gross Fair Gross unrealized losses Fair value Gross unrealized losses Fair value Commercial paper $ (138) $ 96,665 $ — $ — $ (138) $ 96,665 Corporate bonds (695) 71,089 (1,172) 32,807 (1,867) 103,896 Asset-backed securities (233) 23,313 (104) 2,038 (337) 25,351 Certificates of deposit (93) 52,254 — — (93) 52,254 U.S. treasury securities (1,075) 95,388 (1,764) 60,612 (2,839) 156,000 U.S. government agency securities — — (513) 7,487 (513) 7,487 Other (71) 5,326 (58) 1,874 (129) 7,200 Total available-for-sale securities $ (2,305) $ 344,035 $ (3,611) $ 104,818 $ (5,916) $ 448,853 The Company regularly reviews the composition of its portfolio to determine the existence of credit impairment. The Company did not recognize any credit impairment losses during the years ended June 30, 2021, 2022 or 2023. All securities in the Company's portfolio held an A-1 rating or better as of June 30, 2023. The Company did not make any material reclassification adjustments out of Accumulated other comprehensive income for realized gains and losses on the sale of available-for-sale securities during the years ended June 30, 2021, 2022 or 2023. Gross realized gains and losses on the sale of available-for-sale securities were immaterial for the years ended June 30, 2021, 2022 and 2023. Expected maturities of available-for-sale securities at June 30, 2023 were as follows: Amortized Fair One year or less $ 257,957 $ 256,166 One year to two years 147,340 144,468 Two years to three years 87,451 86,445 Three years to five years 1,993 1,791 Total available-for-sale securities $ 494,741 $ 488,870 |