3 Marketable Securities
The Company's marketable securities within cash equivalents and investments included in the consolidated balance sheets are detailed as follows (in thousands):
| December 31, 2013 | |||||||||||||
| Amortized | Unrealized | Unrealized | Fair | ||||||||||
| Cost | Gain | Loss | Value | ||||||||||
| U.S. Treasury securities | $ | 556,438 | $ | 111 | $ | (10) | $ | 556,539 | |||||
| Foreign government securities | 139,670 | - | - | 139,670 | |||||||||
| Corporate debt securities | 629,477 | 190 | (233) | 629,434 | |||||||||
| Time deposits | 74,050 | - | - | 74,050 | |||||||||
| Equity securities | 77 | 70 | - | 147 | |||||||||
| Total | $ | 1,399,712 | $ | 371 | $ | (243) | $ | 1,399,840 | |||||
| Amounts included in: | |||||||||||||
| Cash equivalents | $ | 36,966 | $ | - | $ | - | $ | 36,966 | |||||
| Investments | 1,362,746 | 371 | (243) | 1,362,874 | |||||||||
| Total | $ | 1,399,712 | $ | 371 | $ | (243) | $ | 1,399,840 | |||||
| December 31, 2012 | |||||||||||||
| Amortized | Unrealized | Unrealized | Fair | ||||||||||
| Cost | Gain | Loss | Value | ||||||||||
| U.S. Treasury securities | $ | 470,421 | $ | - | $ | - | $ | 470,421 | |||||
| Foreign government securities | 313,237 | - | - | 313,237 | |||||||||
| Corporate debt securities | 311,607 | - | - | 311,607 | |||||||||
| Time deposits | 64,037 | - | - | 64,037 | |||||||||
| Equity securities | 1,653 | - | (1,583) | 70 | |||||||||
| Total | $ | 1,160,955 | $ | - | $ | (1,583) | $ | 1,159,372 | |||||
| Amounts included in: | |||||||||||||
| Cash equivalents | $ | 101,382 | $ | - | $ | - | $ | 101,382 | |||||
| Investments | 1,059,573 | - | (1,583) | 1,057,990 | |||||||||
| Total | $ | 1,160,955 | $ | - | $ | (1,583) | $ | 1,159,372 | |||||
The estimated fair value of marketable debt securities by maturity date is as follows (in thousands):
| December 31, 2013 | December 31, 2012 | ||||||
| Due in one year or less | $ | 1,011,459 | $ | 1,057,990 | |||
| Due after one year through two years | 314,184 | - | |||||
| Total | $ | 1,325,643 | $ | 1,057,990 | |||
In the year ended December 31, 2013, the Company recorded a $1.6 million charge for an other-than-temporary impairment to an investment. Realized gains and losses on sales of investments were not material in 2013, 2012 and 2011.