Fair Value of Financial Instruments | Fair Value of Financial Instruments Available-for-sale investments within cash equivalents and investments consist of the following: January 31, 2016 Amortized Cost Unrealized Gains Unrealized Losses Estimated Fair Value (in thousands) U.S. agency securities $ 90,429 $ 3 $ (45 ) $ 90,387 Commercial paper 105,055 5 (5 ) 105,055 Corporate bonds 263,928 61 (320 ) 263,669 U.S. government bonds 87,412 28 (47 ) 87,393 Foreign government bonds 8,598 — (3 ) 8,595 Money market funds 93,897 — — 93,897 Non-marketable convertible note $ 5,000 $ — $ — $ 5,000 Total $ 654,319 $ 97 $ (420 ) $ 653,996 July 31, 2015 Amortized Cost Unrealized Gains Unrealized Losses Estimated Fair Value (in thousands) U.S. agency securities $ 82,946 $ 21 $ (4 ) $ 82,963 Commercial paper 142,822 13 (4 ) 142,831 Corporate bonds 281,942 47 (216 ) 281,773 U.S. government bonds 32,529 13 (2 ) 32,540 Foreign government bonds 8,663 7 (2 ) 8,668 Certificate of deposit 2,700 — — 2,700 Money market funds 88,319 — — 88,319 Total $ 639,921 $ 101 $ (228 ) $ 639,794 The following table shows the gross unrealized losses and fair value of the Company’s investments with unrealized losses, aggregated by investment category and length of time that individual securities have been in a continuous unrealized loss position: January 31, 2016 Less Than 12 Months 12 Months or Greater Total Fair Value Gross Unrealized Losses Fair Value Gross Unrealized Losses Fair Value Gross Unrealized Losses (in thousands) Commercial paper $ 28,408 $ (5 ) $ — $ — $ 28,408 $ (5 ) U.S. agency securities 77,388 (45 ) — — 77,388 (45 ) Corporate bonds 174,470 (320 ) — — 174,470 (320 ) U.S. government bonds 53,153 (47 ) — — 53,153 (47 ) Foreign government bonds 8,595 (3 ) — — 8,595 (3 ) Total $ 342,014 $ (420 ) $ — $ — $ 342,014 $ (420 ) As of January 31, 2016 , the Company had 121 investments in a gross unrealized loss position. The unrealized losses on its available-for-sale securities were primarily a result of changes in interest rates subsequent to the initial purchase of these securities. The Company does not intend to sell, nor believe it will need to sell, these securities before recovering the associated unrealized losses. The Company does not consider any portion of the unrealized losses at January 31, 2016 to be an other-than-temporary impairment, nor are any unrealized losses considered to be credit losses. The Company has recorded the securities at fair value in its condensed consolidated balance sheets, with unrealized gains and losses reported as a component of accumulated other comprehensive loss. The amounts of realized gains and losses reclassified into earnings are based on the specific identification of the securities sold. The realized gains and losses from sales of securities in the periods presented were not significant. The following table summarizes the contractual maturities of the Company’s investments measured at fair value as of January 31, 2016 : Less Than 12 Months 12 to 36 Months Total (in thousands) U.S. agency securities $ 79,777 $ 10,610 $ 90,387 Commercial paper 105,055 — 105,055 Corporate bonds 192,698 70,971 263,669 U.S. government bonds 64,154 23,239 87,393 Foreign government bonds 8,595 — 8,595 Money market funds 93,897 — 93,897 Non-marketable convertible note $ — $ 5,000 $ 5,000 Total $ 544,176 $ 109,820 $ 653,996 Fair Value Measurement The current accounting guidance for fair value measurements defines a three-level valuation hierarchy for disclosures as follows: Level 1—Unadjusted quoted prices in active markets for identical assets or liabilities; Level 2—Inputs other than quoted prices included within Level 1 that are observable, unadjusted quoted prices in markets that are not active, or other inputs that are observable or can be corroborated by observable market data; and Level 3—Unobservable inputs that are supported by little or no market activity, which require the Company to develop its own assumptions. During December 2015, the Company invested $5 million in a convertible note issued by a privately-held company that does not have a readily determinable market value. The convertible note is recorded in long-term investments on the condensed consolidated balance sheet at fair value. The convertible note is classified within Level 3 as it is valued using significant unobservable inputs or data in an inactive market, and the valuation requires management judgment due to the absence of a market price and inherent lack of liquidity. As of January 31, 2016 , the carrying value of the convertible note approximated its fair value. The following table summarizes the changes in our Level 3 financial instrument: Available-for-Sale Debt Security (in thousands) Balance as of July 31, 2015 $ — Purchase 5,000 Sales — Balance as of January 31, 2016 $ 5,000 The following tables summarize the Company’s financial assets measured at fair value on a recurring basis, by level within the fair value hierarchy as of January 31, 2016 and July 31, 2015 : January 31, 2016 Level 1 Level 2 Level 3 Total (in thousands) Assets Cash and cash equivalents: Commercial paper $ — $ 76,257 $ — $ 76,257 Money market funds 93,897 — — 93,897 Short-term investments: U.S. agency securities — 79,777 — 79,777 Commercial paper — 28,798 — 28,798 Corporate bonds — 192,698 — 192,698 U.S. government bonds — 64,154 — 64,154 Foreign government bonds — 8,595 — 8,595 Long-term investments: U.S. agency securities — 10,609 — 10,609 U.S. government bonds — 23,240 — 23,240 Corporate bonds — 70,971 — 70,971 Non-marketable convertible note $ — $ — $ 5,000 $ 5,000 Total assets $ 93,897 $ 555,099 $ 5,000 $ 653,996 July 31, 2015 Level 1 Level 2 Level 3 Total (in thousands) Assets Cash and cash equivalents: Commercial paper $ — $ 86,085 $ — $ 86,085 Money market funds 88,319 — — 88,319 Short-term investments: U.S. agency securities — 68,212 — 68,212 Commercial paper — 56,746 — 56,746 U. S. government bonds — 19,983 — 19,983 Foreign government bonds — 8,668 — 8,668 Corporate bonds — 202,964 — 202,964 Certificate of deposit — 2,700 — 2,700 Long-term investments: U.S. agency securities — 14,751 — 14,751 Corporate bonds — 78,809 — 78,809 U.S. government bonds — 12,557 — 12,557 Total assets $ 88,319 $ 551,475 $ — $ 639,794 |