| Investments |
Investments The following is a summary of cash and cash equivalents and available-for-sale investments as of March 31, 2015 and December 31, 2014 (in thousands): | | | | | | | | | | | | | | | | | | March 31, 2015 | | Amortized Cost | | Unrealized Gains | | Unrealized Losses | | Fair Value | Cash | $ | 100,698 |
| | $ | — |
| | $ | — |
| | $ | 100,698 |
| Cash equivalents - Money market funds | 116,256 |
| | — |
| | — |
| | 116,256 |
| Total cash and cash equivalents | $ | 216,954 |
| | $ | — |
| | $ | — |
| | $ | 216,954 |
| Available-for-sale marketable securities: | | | | | | | | Auction rate securities | $ | 10,800 |
| | $ | — |
| | $ | (162 | ) | | $ | 10,638 |
| Corporate debt securities | 70,666 |
| | 14 |
| | (67 | ) | | 70,613 |
| Foreign government obligations | 8,889 |
| | 1 |
| | (14 | ) | | 8,876 |
| U.S. Treasuries / Agencies | 140,367 |
| | 63 |
| | (30 | ) | | 140,400 |
| Total available-for-sale marketable securities | $ | 230,722 |
| | $ | 78 |
| | $ | (273 | ) | | $ | 230,527 |
| Total cash, cash equivalents and available-for-sale marketable securities | | | | | | | $ | 447,481 |
|
| | | | | | | | | | | | | | | | | | December 31, 2014 | | Amortized Cost | | Unrealized Gains | | Unrealized Losses | | Fair Value | Cash | $ | 63,622 |
| | $ | — |
| | $ | — |
| | $ | 63,622 |
| Cash equivalents - Money market funds | 90,946 |
| | — |
| | — |
| | 90,946 |
| Total cash and cash equivalents | $ | 154,568 |
| | $ | — |
| | $ | — |
| | $ | 154,568 |
| Available-for-sale marketable securities: | | | | | | | | Auction rate securities | $ | 10,800 |
| | $ | — |
| | $ | (162 | ) | | $ | 10,638 |
| Corporate debt securities | 98,379 |
| | 13 |
| | (116 | ) | | 98,276 |
| Foreign government obligations | 10,551 |
| | — |
| | (4 | ) | | 10,547 |
| U.S. Treasuries / Agencies | 195,077 |
| | 37 |
| | (123 | ) | | 194,991 |
| Total available-for-sale marketable securities | $ | 314,807 |
| | $ | 50 |
| | $ | (405 | ) | | $ | 314,452 |
| Total cash, cash equivalents and available-for-sale marketable securities | | | | | | | $ | 469,020 |
|
Fair value is estimated, and realized gains and losses are calculated, based on the specific identification method. The Company attributes the unrealized losses on its auction rate securities to liquidity issues rather than credit issues. The Company’s auction rate securities at March 31, 2015 are comprised solely of AAA-rated investments in federally insured student loans. The Company continues to earn interest on all of its auction rate securities and has the ability and intent to hold these securities until they recover their amortized cost. As of March 31, 2015, the fair value of available-for-sale marketable debt securities by contractual maturity was as follows (in thousands): | | | | | | March 31, 2015 | Due in 1 year or less | $ | 87,279 |
| Due in 1-2 years | 132,610 |
| Due in greater than 2 years | 10,638 |
| Total | $ | 230,527 |
|
|