| CASH EQUIVALENT, SHORT-TERM AND LONG-TERM INVESTMENTS |
CASH EQUIVALENT, SHORT-TERM AND LONG-TERM INVESTMENTS As of the dates indicated, investments classified as available-for-sale are comprised of the following (in thousands): | | | | | | | | | | | | | | | | | | | | | | | | | | July 27, 2024 | | Amortized Cost | | Gross Unrealized Gains | | Gross Unrealized Losses | | Estimated Fair Value | | U.S. government obligations | $ | 260,879 | | | $ | 250 | | | $ | (119) | | | $ | 261,010 | | | Corporate debt securities | 57,791 | | | 64 | | | (19) | | | 57,836 | | | Time deposits | 96,127 | | | 7 | | | — | | | 96,134 | | | $ | 414,797 | | | $ | 321 | | | $ | (138) | | | $ | 414,980 | | | | | | | | | | | Included in cash equivalents | $ | 85,337 | | | $ | — | | | $ | — | | | $ | 85,337 | | | Included in short-term investments | 217,761 | | | 158 | | | (109) | | | 217,810 | | | Included in long-term investments | 111,699 | | | 163 | | | (29) | | | 111,833 | | | $ | 414,797 | | | $ | 321 | | | $ | (138) | | | $ | 414,980 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | October 28, 2023 | | Amortized Cost | | Gross Unrealized Gains | | Gross Unrealized Losses | | Estimated Fair Value | | U.S. government obligations | $ | 170,260 | | | $ | 28 | | | $ | (379) | | | $ | 169,909 | | | Corporate debt securities | 59,683 | | | 1 | | | (115) | | | 59,569 | | | Time deposits | 138,830 | | | 4 | | | (5) | | | 138,829 | | | $ | 368,773 | | | $ | 33 | | | $ | (499) | | | $ | 368,307 | | | | | | | | | | | Included in cash equivalents | $ | 129,276 | | | $ | — | | | $ | — | | | $ | 129,276 | | | Included in short-term investments | 105,042 | | | 4 | | | (293) | | | 104,753 | | | Included in long-term investments | 134,455 | | | 29 | | | (206) | | | 134,278 | | | $ | 368,773 | | | $ | 33 | | | $ | (499) | | | $ | 368,307 | |
The following table summarizes the final legal maturities of debt investments as of July 27, 2024 (in thousands): | | | | | | | | | | | | | Amortized Cost | | Estimated Fair Value | | Less than one year | $ | 303,098 | | | $ | 303,147 | | | Due in 1-2 years | 111,699 | | | 111,833 | | | | $ | 414,797 | | | $ | 414,980 | |
|