Fair Value of Financial Instruments | 5. Fair Value of Financial Instruments The Company measures certain financial assets at fair value. Fair value is determined based upon the exit price that would be received to sell an asset or paid to transfer a liability in an orderly transaction between market participants, as determined by either the principal market or the most advantageous market. Inputs used in the valuation techniques to derive fair values are classified based on a three-level hierarchy, as follows: • Level 1 — Quoted prices in active markets for identical assets or liabilities. • Level 2 — Observable inputs other than Level 1 prices such as quoted prices for similar assets or liabilities; quoted prices in markets with insufficient volume or infrequent transactions (less active markets); or model-derived valuations in which all significant inputs are observable or can be derived principally from or corroborated by observable market data for substantially the full term of the assets or liabilities. • Level 3 — Unobservable inputs to the valuation methodology that are significant to the measurement of fair value of assets or liabilities. The following table details the fair value measurements within the fair value hierarchy of the Company’s financial assets and liabilities at June 30, 2019 and December 31, 2018: June 30, 2019 Level 1 Level 2 Level 3 Total (in thousands) Cash equivalents and investments: Money market funds $ 88,394 $ — $ — $ 88,394 Commercial paper — 4,083 — 4,083 Corporate bonds — 71,877 — 71,877 U.S. Treasury securities — 714,722 — 714,722 Restricted cash: Certificates of deposit — 7,522 — 7,522 Total $ 88,394 $ 798,204 $ — $ 886,598 December 31, 2018 Level 1 Level 2 Level 3 Total (in thousands) Cash equivalents and investments: Money market funds $ 1,579 $ — $ — $ 1,579 Commercial paper — 8,242 — 8,242 Corporate bonds — 70,728 — 70,728 U.S. Treasury securities — 413,241 — 413,241 Restricted cash: Certificates of deposit — 5,625 — 5,625 Total $ 1,579 $ 497,836 $ — $ 499,415 The Company considers all highly liquid investments purchased with a remaining maturity of three months or less to be cash equivalents. The fair value of the Company’s investments in certain money market funds is their face value and such instruments are classified as Level 1 and are included in cash and cash equivalents on the consolidated balance sheets. At June 30, 2019 and December 31, 2018, our Level 2 securities were priced by pricing vendors. These pricing vendors utilize the most recent observable market information in pricing these securities or, if specific prices are not available for these securities, use other observable inputs like market transactions involving identical or comparable securities. As of June 30, 2019 the fair value of the 2022 Notes was $744.2 million. The fair value was determined based on the quoted price of the 2022 Notes in an inactive market on the last trading day of the reporting period and has been classified as Level 2 within the fair value hierarchy. For certain other financial instruments, including accounts receivable, accounts payable, capital leases and other current liabilities, the carrying amounts approximate their fair value due to the relatively short maturity of these balances. Strategic investments consist of non-controlling equity investments in privately held companies. The Company elected the measurement alternative for these investments without readily determinable fair values and for which the Company does not have the ability to exercise significant influence. These investments are accounted for under the cost method of accounting. Under the cost method of accounting, the non-marketable equity securities are carried at cost less any impairment, plus or minus adjustments resulting from observable price changes in orderly transactions for the identical or a similar investment of the same issuer, which is recorded within the statement of operations. The Company holds $4.4 million without readily determinable fair values at June 30, 2019 and $4.0 million of investments without readily determinable fair values at December 31, 2018. These investments are included in other assets on the consolidated balance sheets. There have been no adjustments to the carrying value of strategic investments resulting from impairments or observable price changes. The following tables summarize the composition of our short- and long-term investments at June 30, 2019 and December 31, 2018. June 30, 2019 Amortized Cost Unrealized Gains Unrealized Losses Aggregate Fair Value (in thousands) Commercial paper $ 4,083 $ — $ — $ 4,083 Corporate bonds 71,716 190 (29 ) 71,877 U.S. Treasury securities 678,995 788 — 679,783 Total $ 754,794 $ 978 $ (29 ) $ 755,743 December 31, 2018 Amortized Cost Unrealized Gains Unrealized Losses Aggregate Fair Value (in thousands) Commercial paper $ 8,256 $ — $ (14 ) $ 8,242 Corporate bonds 70,958 3 (233 ) 70,728 U.S. Treasury securities 413,323 56 (138 ) 413,241 Total $ 492,537 $ 59 $ (385 ) $ 492,211 For all of our securities for which the amortized cost basis was greater than the fair value at June 30, 2019, the Company has concluded that there is no plan to sell the security nor is it more likely than not that the Company would be required to sell the security before its anticipated recovery. In making the determination as to whether the unrealized loss is other-than-temporary, the Company considered the length of time and extent the investment has been in an unrealized loss position, the financial condition and near-term prospects of the issuers, the issuers’ credit rating and the time to maturity. Contractual Maturities The contractual maturities of short-term and long-term investments held at June 30, 2019 and December 31, 2018 are as follows: June 30, 2019 December 31, 2018 Amortized Cost Basis Aggregate Fair Value Amortized Cost Basis Aggregate Fair Value (in thousands) (in thousands) Due within one year $ 716,328 $ 717,115 $ 481,071 $ 480,761 Due after 1 year through 2 years 38,466 38,628 11,466 11,450 Total $ 754,794 $ 755,743 $ 492,537 $ 492,211 |