Financial Instruments and Fair Value Measurements | Financial Instruments and Fair Value Measurements Fair value is defined as the price that would be received from selling an asset or paid to transfer a liability in an orderly transaction between market participants at the measurement date. Fair value measurements are classified and disclosed in one of the following three categories: Level 1 — Valuations based on quoted prices in active markets for identical assets or liabilities. Level 2 — Valuations based on other than quoted prices in active markets for identical assets and liabilities, quoted prices for identical or similar assets or liabilities in inactive markets, or other inputs that are observable or can be corroborated by observable market data for substantially the full term of the assets or liabilities. Level 3 — Valuations based on inputs that are generally unobservable and typically reflect management’s estimates of assumptions that market participants would use in pricing the assets or liabilities. The following tables set forth by level within the fair value hierarchy the Company’s financial assets that were accounted for at fair value on a recurring basis: June 30, 2017 December 31, 2016 Level 1 Level 2 Total Level 1 Level 2 Total (in thousands) (in thousands) Cash equivalents: Money market funds $ 122,123 $ — $ 122,123 $ 2,733 $ — $ 2,733 Corporate notes and obligations — 18,367 18,367 — — — U.S. government and government agency obligations 9,898 7,094 16,992 151,660 149,976 301,636 Investments: Certificates of deposit — 9,975 9,975 — 12,088 12,088 Corporate notes and obligations — 73,647 73,647 — 28,892 28,892 Municipal obligations — 10,915 10,915 — 11,361 11,361 U.S. government and government agency obligations 46,497 100,516 147,013 4,579 30,852 35,431 $ 178,518 $ 220,514 $ 399,032 $ 158,972 $ 233,169 $ 392,141 The Company classifies its money market funds that are specifically backed by debt securities and U.S. government obligations as Level 1 instruments, due to the use of observable market prices for identical securities that are traded in active markets . Valuation of the Company’s marketable securities investments classified as Level 2 is achieved primarily through broker quotes when such investments exist in a non-active market. At June 30, 2017 and December 31, 2016 , the Company did not have any assets or liabilities that were valued using Level 3 inputs. For the three and six months ended June 30, 2017 and 2016 , there were no transfers of financial instruments between the levels. Realized gains and losses from the sale of investments were not significant during the three and six months ended June 30, 2017 and 2016 . The carrying amounts, gross unrealized gains and losses and estimated fair value of cash and cash equivalents and both short-term and long-term investments consisted of the following: June 30, 2017 December 31, 2016 Amortized Cost Unrealized Gains Unrealized Losses Carrying or Fair Value Amortized Unrealized Gains Unrealized Losses Carrying or (in thousands) (in thousands) Cash and cash equivalents: Cash $ 55,722 $ — $ — $ 55,722 $ 76,538 $ — $ — $ 76,538 Money market funds 122,123 — — 122,123 2,733 — — 2,733 Corporate notes and obligations 18,367 — — 18,367 — — — — U.S. government and government agency obligations 16,992 — — 16,992 301,631 8 (3 ) 301,636 $ 213,204 $ — $ — $ 213,204 $ 380,902 $ 8 $ (3 ) $ 380,907 Investments: Corporate notes and obligations $ 73,756 $ 5 $ (114 ) $ 73,647 $ 28,978 $ 1 $ (87 ) $ 28,892 Certificates of deposit 9,973 3 (1 ) 9,975 12,094 13 (19 ) 12,088 Municipal obligations 10,919 10 (14 ) 10,915 11,422 1 (62 ) 11,361 U.S. government and government agency obligations 147,166 3 (156 ) 147,013 35,502 8 (79 ) 35,431 $ 241,814 $ 21 $ (285 ) $ 241,550 $ 87,996 $ 23 $ (247 ) $ 87,772 The following table shows the gross unrealized losses and the related fair values of the Company’s investments that have been in a continuous unrealized loss position. The Company did not identify any investments as other-than-temporarily impaired at June 30, 2017 or December 31, 2016 . June 30, 2017 Less than 12 Months 12 Months or Greater Total Fair Value Unrealized Losses Fair Value Unrealized Losses Fair Value Unrealized Losses (in thousands) Corporate notes and obligations $ 63,252 $ (108 ) $ 659 $ (6 ) $ 63,911 $ (114 ) Certificates of deposit 3,150 — 485 (1 ) 3,635 (1 ) U.S. government, government agency, and municipal obligations 146,580 (165 ) 839 (5 ) 147,419 (170 ) $ 212,982 $ (273 ) $ 1,983 $ (12 ) $ 214,965 $ (285 ) December 31, 2016 Less than 12 Months 12 Months or Greater Total Fair Value Unrealized Losses Fair Value Unrealized Losses Fair Value Unrealized Losses (in thousands) Corporate notes and obligations $ 26,076 $ (87 ) $ — $ — $ 26,076 $ (87 ) Certificates of deposit 5,651 (19 ) — — 5,651 (19 ) U.S. government, government agency, and municipal obligations 180,138 (144 ) 385 — 180,523 (144 ) $ 211,865 $ (250 ) $ 385 $ — $ 212,250 $ (250 ) The following table summarizes the maturities of the Company’s investments at June 30, 2017 : Carrying or Fair Value (in thousands) Remainder of 2017 $ 66,031 2018 87,471 2019 64,577 2020 23,471 Total $ 241,550 Actual maturities may differ from the contractual maturities because borrowers may have the right to call or prepay certain obligations. |