XML 82 R26.htm IDEA: XBRL DOCUMENT v3.20.1
Net Income (Loss) per Share
12 Months Ended
Dec. 31, 2019
Earnings Per Share [Abstract]  
Net Income (Loss) per Share
Net Income (Loss) per Share

The following table sets forth the calculation of basic and diluted net income (loss) per share attributable to common stockholders during the periods presented (in thousands, except per share amounts):    
 
 
Year Ended December 31,
 
 
2019
 
2018
 
2017
Numerator:
 
 
 
 
 
 
Net income (loss)
 
$
(12,884
)
 
$
13,938

 
$
1,837

Participating securities:
 
 
 
 
 
 
Income allocated to participating securities
 

 
(4,415
)
 
(1,837
)
Net income (loss) attributable to common stockholders
 
(12,884
)
 
9,523

 

 
 
 
 
 
 
 
Denominator:
 
 
 
 
 
 
Weighted-average shares, basic
 
37,119

 
24,862

 
2,735

Dilutive effect of restricted stock units and awards
 

 
11

 

Dilutive effect of common stock options
 

 
5,086

 

Weighted-average common shares outstanding, diluted
 
37,119

 
29,959

 
2,735

Net income (loss) per share attributable to common stockholders:
 
 
 
 
 
 
Basic
 
$
(0.35
)
 
$
0.38

 
$
0.00

Diluted
 
$
(0.35
)
 
$
0.32

 
$
0.00



The following potentially dilutive shares of restricted stock awards and units, employee stock purchase plan, and stock options were not included in the calculation of diluted shares above as the effect would have been anti‑dilutive (in thousands):
 
 
Year Ended December 31,
 
 
2019
 
2018
 
2017
Convertible preferred stock
 

 

 
23,095

Preferred stock warrants
 

 

 
214

Restricted stock units and awards
 
2,426

 
622

 

Common stock options
 
4,239

 

 
5,369

Total
 
6,665

 
622

 
28,678