|6 Months Ended|
Jun. 30, 2021
|Investments, Debt and Equity Securities [Abstract]|
As of June 30, 2021 and December 31, 2020, the Company had $197.2 million and $5.0 million and $126.0 million and $24.4 million of short and long-term investments, respectively, mainly consisting of commercial paper and bonds as summarized below. As of June 30, 2021, the Company classifies its investments as debt securities of which $48.5 million are held to maturity which are carried at amortized cost and approximate fair market value. As of June 30, 2021, $153.6 million are available-for-sale which are carried at fair market value. As of December 31, 2020, $150.4 million were classified as held to maturity and $nil were available-for-sale.
Currently, the Company does not intend to sell investments that are classified as held-to-maturity and has the ability and intent to hold these investments until maturity in order to collect interest payments over the life of the investments. As of June 30, 2021 and December 31, 2020, accrued interest receivable from the investments were $0.3 million and $0.5 million, respectively. During the three and six months ended June 30, 2021, the Company had $7 thousand and $13 thousand unrealized gains on available-for-sale securities, net of tax, which are included as a component of comprehensive loss, respectively. The Company's investments as of June 30, 2021 mature at various dates through August 2022.
The entire disclosure for investments in certain debt and equity securities.
Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef