XML 50 R35.htm IDEA: XBRL DOCUMENT v3.22.0.1
Cash and Cash Equivalents, and Investments and Fair Value Measurements (Tables)
12 Months Ended
Dec. 31, 2021
Cash and Cash Equivalents [Abstract]  
Cash and Cash Equivalents, and Investments
The following tables show our cash and cash equivalents, and investments’ fair value level classification, adjusted cost, unrealized gain, unrealized loss and fair value as of December 31, 2021 and 2020 (in thousands, except for fair value level):

 December 31, 2021
 Fair Value LevelAdjusted CostUnrealized GainUnrealized LossFair Value
Cash and cash equivalents:   
Cash$30,324 $— $— $30,324 
Money market fundsLevel 1823,754 — — 823,754 
Total cash and cash equivalents$854,078 $— $— $854,078 
Short-term investments:   
Commercial paperLevel 2$124,211 $$(33)$124,180 
Corporate debt securitiesLevel 2552,609 36 (546)552,099 
Agency bondsLevel 215,500 — 15,502 
Total short-term investments$692,320 $40 $(579)$691,781 
Long-term investments:
Corporate debt securitiesLevel 2$724,517 $— $(3,277)$721,240 
U.S. treasury securitiesLevel 124,860 — (107)24,753 
Total long-term investments$749,377 $— $(3,384)$745,993 

 December 31, 2020
 Fair Value LevelAdjusted CostUnrealized GainUnrealized LossFair Value
Cash and cash equivalents:   
Cash$15,054 $— $— $15,054 
Money market fundsLevel 1464,799 — — 464,799 
Total cash and cash equivalents$479,853 $— $— $479,853 
Short-term investments:   
Commercial paperLevel 2$204,152 $24 $(6)$204,170 
Corporate debt securitiesLevel 2459,967 1,478 (48)461,397 
Total short-term investments$664,119 $1,502 $(54)$665,567 
Long-term investments:
Corporate debt securitiesLevel 2$484,275 $605 $(283)$484,597 
Agency bondsLevel 238,995 36 — 39,031 
Total long-term investments$523,270 $641 $(283)$523,628 
Schedule of Available-for-sale Securities Reconciliation
The following table shows our cash equivalents and investments' adjusted cost and fair value by contractual maturity as of December 31, 2021 (in thousands):
December 31, 2021
 CostFair Value
Due in 1 year or less$692,320 $691,781 
Due in 1-2 years749,377 745,993 
Investments not due at a single maturity date823,754 823,754 
Total$2,265,451 $2,261,528 
Fair Value Measurements, Nonrecurring
The carrying amounts and estimated fair values of the notes as of December 31, 2021 and 2020 are as follows (in thousands):
December 31, 2021
December 31, 2020 (1)
 Carrying AmountEstimated Fair ValueCarrying AmountEstimated Fair Value
2026 notes$987,691 $840,000 $761,930 $1,129,370 
2025 notes690,464 682,202 640,614 1,456,800 
2023 notes— — 104,378 376,949 
Convertible senior notes, net$1,678,155 $1,522,202 $1,506,922 $2,963,119 
(1) Prior period amounts have not been adjusted due to the adoption of ASU 2020-06 under the modified retrospective method. Refer to Note 10, “Convertible Senior Notes” for more information.