INVESTMENTS (Tables)
12 Months Ended
Dec. 31, 2021
INVESTMENTS  
Schedule of marketable securities by security type

The following tables provide the Company’s marketable securities by security type (in thousands):

As of December 31, 2021

As of December 31, 2020

Gross

Gross

 

Gross

Gross

 

    

Unrealized

    

Unrealized

    

Estimated

    

    

Unrealized

    

Unrealized

    

Estimated

(in thousands)

Cost

Gains

Losses

Fair Value

Cost

Gains

Losses

Fair Value

US government agency debt security

$

27,042

$

1

$

(108)

$

26,935

$

39,475

$

11

$

(123)

$

39,363

Total

$

27,042

$

1

$

(108)

$

26,935

$

39,475

$

11

$

(123)

$

39,363

Schedule of contractual maturities

Contractual maturities of the Company’s marketable securities are summarized as follows (in thousands):

As of December 31, 2021

As of December 31, 2020

Gross

Gross

 

Gross

Gross

 

Unrealized

Unrealized

    

Estimated

Unrealized

Unrealized

    

Estimated

(in thousands)

Cost

    

Gains

    

Losses

    

Fair Value

    

Cost

    

Gains

    

Losses

    

Fair Value

Due in one year or less

$

27,042

$

1

$

(108)

$

26,935

$

39,475

$

11

$

(123)

$

39,363

Due in one through two years

Total

$

27,042

$

1

  

$

(108)

$

26,935

$

39,475

$

11

  

$

(123)

$

39,363

Unrealized Gain (Loss) on Investments

As of December 31, 2021

Securities in an unrealized loss position less than 12 months

Securities in an unrealized loss position greater than 12 months

Total

Unrealized

    

Estimated

    

Unrealized

    

Estimated

    

Unrealized

    

Estimated

(in thousands)

Losses

Fair Value

Losses

Fair Value

Losses

Fair Value

US government agency debt security

$

(108)

$

17,696

$

$

$

(108)

$

17,696

Total

$

(108)

$

17,696

$

$

$

(108)

$

17,696

As of December 31, 2020

Securities in an unrealized loss position less than 12 months

Securities in an unrealized loss position greater than 12 months

Total

Unrealized

    

Estimated

    

Unrealized

    

Estimated

    

Unrealized

    

Estimated

(in thousands)

Losses

Fair Value

Losses

Fair Value

Losses

Fair Value

US government agency debt security

$

(123)

$

14,073

$

$

$

(123)

$

14,073

Total

$

(123)

$

14,073

$

$

$

(123)

$

14,073