INVESTMENTS IN DEBT SECURITIES | INVESTMENTS IN DEBT SECURITIES The Company's short-term and long-term investments as of March 31, 2023 were as follows (in thousands): Amortized Cost Gross Unrealized Gains Gross Unrealized Losses Fair Value Short-term debt securities: U.S. agency securities $ 121,972 $ 31 $ (1,706) $ 120,297 Corporate bonds 364,948 — (6,690) 358,258 Commercial paper 7,461 — — 7,461 Municipal securities 6,587 — (120) 6,467 Certificates of deposit 2,500 — — 2,500 U.S. government securities 527,991 16 (6,439) 521,568 Foreign government securities 7,724 — (165) 7,559 Total $ 1,039,183 $ 47 $ (15,120) $ 1,024,110 Long-term debt securities: U.S. agency securities $ 58,494 $ — $ (2,626) $ 55,868 Corporate bonds 157,810 16 (4,324) 153,502 Municipal securities 10,410 12 (530) 9,892 U.S. government securities 201,379 20 (8,868) 192,531 Foreign government securities 1,000 — (46) 954 Total $ 429,093 $ 48 $ (16,394) $ 412,747 The Company's short-term and long-term investments as of December 31, 2022 were as follows (in thousands): Amortized Cost Gross Unrealized Gains Gross Unrealized Losses Fair Value Short-term debt securities: U.S. agency securities $ 96,545 $ 16 $ (2,120) $ 94,441 Corporate bonds 368,110 2 (7,475) 360,637 Commercial paper 31,503 — — 31,503 Municipal securities 9,884 — (191) 9,693 Certificates of deposit 6,400 — — 6,400 U.S. government securities 580,568 6 (8,937) 571,637 Foreign government securities 7,795 — (255) 7,540 Total $ 1,100,805 $ 24 $ (18,978) $ 1,081,851 Long-term debt securities: U.S. agency securities $ 74,097 $ — $ (3,782) $ 70,315 Corporate bonds 245,891 6 (9,171) 236,726 Municipal securities 10,415 3 (664) 9,754 U.S. government securities 268,902 — (13,210) 255,692 Foreign government securities 1,000 — (58) 942 Total $ 600,305 $ 9 $ (26,885) $ 573,429 The amortized cost of investments classified as cash equivalents approximated the fair value due to the short-term nature of the investments. The Company's gross unrealized losses and fair values for those investments that were in an unrealized loss position as of March 31, 2023 and December 31, 2022, aggregated by investment category and the length of time that individual securities have been in a continuous loss position were as follows (in thousands): March 31, 2023 Less than 12 Months Greater than 12 Months Total Fair Value Gross Unrealized Losses Fair Value Gross Unrealized Losses Fair Value Gross Unrealized Losses Short-term debt securities: U.S. agency securities $ 26,381 $ (31) $ 92,659 $ (1,675) $ 119,040 $ (1,706) Corporate bonds 30,590 (118) 327,472 (6,572) 358,062 (6,690) Municipal securities — — 6,468 (120) 6,468 (120) U.S. government securities 152,623 (482) 321,220 (5,957) 473,843 (6,439) Foreign government securities — — 7,559 (165) 7,559 (165) Total $ 209,594 $ (631) $ 755,378 $ (14,489) $ 964,972 $ (15,120) Long-term debt securities: U.S. agency securities $ 8,966 $ (35) $ 46,903 $ (2,591) $ 55,869 $ (2,626) Corporate bonds 21,761 (158) 129,136 (4,166) 150,897 (4,324) Municipal securities 471 (29) 8,909 (501) 9,380 (530) U.S. government securities 4,879 (10) 170,033 (8,858) 174,912 (8,868) Foreign government securities — — 954 (46) 954 (46) Total $ 36,077 $ (232) $ 355,935 $ (16,162) $ 392,012 $ (16,394) December 31, 2022 Less than 12 Months Greater than 12 Months Total Fair Value Gross Unrealized Losses Fair Value Gross Unrealized Losses Fair Value Gross Unrealized Losses Short-term debt securities: U.S. agency securities $ 8,572 $ (24) $ 84,628 $ (2,096) $ 93,200 $ (2,120) Corporate bonds 34,795 (423) 320,748 (7,052) 355,543 (7,475) Municipal securities 587 (13) 5,811 (178) 6,398 (191) U.S. government securities 146,974 (839) 394,880 (8,098) 541,854 (8,937) Foreign government securities — — 7,540 (255) 7,540 (255) Total $ 190,928 $ (1,299) $ 813,607 $ (17,679) $ 1,004,535 $ (18,978) Long-term debt securities: U.S. agency securities $ 11,501 $ (20) $ 58,814 $ (3,762) $ 70,315 $ (3,782) Corporate bonds 33,862 (262) 201,791 (8,909) 235,653 (9,171) Municipal securities 467 (33) 8,784 (631) 9,251 (664) U.S. government securities 54,405 (590) 201,288 (12,620) 255,693 (13,210) Foreign government securities — — 942 (58) 942 (58) Total $ 100,235 $ (905) $ 471,619 $ (25,980) $ 571,854 $ (26,885) The Company does not intend to sell nor anticipate that it will be required to sell these securities before recovery of the amortized cost basis. Unrealized losses on available-for-sale debt securities were determined not to be related to credit related losses, therefore, an allowance for credit losses is not required. The contractual maturities of the Company's short-term and long-term investments as of March 31, 2023 were as follows (in thousands): Amortized Cost Fair Value Due in one year or less $ 1,039,183 $ 1,024,110 Due in one to five years 429,093 412,747 Total $ 1,468,276 $ 1,436,857 The following table presents the assets underlying customer funds (in thousands): March 31, 2023 December 31, 2022 Cash $ 2,403,642 $ 1,748,983 Cash equivalents: Money market funds 737,522 851,296 Reverse repurchase agreement (i) 659,309 580,045 Total customer funds $ 3,800,473 $ 3,180,324 (i) The Company has accounted for the reverse repurchase agreement with a third-party as an overnight lending arrangement, collateralized by the securities subject to the repurchase agreement. The Company classified the amounts due from the counterparty as cash equivalents due to the short-term nature. |