XML 32 R19.htm IDEA: XBRL DOCUMENT v3.21.2
Net (loss) income per share
9 Months Ended
Sep. 30, 2021
Net (loss) income per share  
Net (loss) income per share

12. Net (loss) income per share

Basic (loss) income per common share is calculated by dividing net (loss) income applicable to common stockholders by the weighted-average number of common shares outstanding during the period. Diluted net (loss) income per common share is calculated by increasing the denominator by the weighted-average number of additional shares that could have been outstanding from securities convertible into common stock, such as stock options, restricted stock units, and employee stock purchase plan shares (using the “treasury stock” method), and the Notes (using the “if-converted” method), unless their effect on net (loss) income per share is anti-dilutive.

The computation of basic and diluted net (loss) income per share attributable to common stockholders consists of the following:

Three months ended September 30,

Nine months ended September 30,

    

2021

    

2020

    

2021

    

2020

 

Numerator

Net (loss) income

 

(22,786)

 

13,138

(54,719)

 

(47,862)

Denominator

Weighted average shares outstanding - basic

179,861

169,510

174,524

147,766

Effect of dilutive securities:

Restricted Stock Units

137

Stock Options

86

Employee Stock Purchase Plan

27

Weighted average shares outstanding - diluted

179,861

169,760

174,524

147,766

Net (loss) income per share - basic

(0.13)

0.08

(0.31)

(0.32)

Net (loss) income per share - diluted

(0.13)

0.08

(0.31)

(0.32)

The following potentially dilutive securities were excluded from the calculation of diluted net (loss) income per share for the periods indicated because including them would have had an anti-dilutive effect:

Three months ended September 30,

Nine months ended September 30,

    

2021

    

2020

    

2021

    

2020

 

Outstanding stock options

 

12,947,009

 

11,613,978

12,947,009

 

12,912,267

Outstanding restricted stock units

1,749,979

807,566

1,749,979

3,758,548

2018 Notes

41,873

3,950,032

41,873

3,950,032

Employee stock purchase plan

29,328

29,328

105,533

Total potentially dilutive securities

 

14,768,189

 

16,371,576

14,768,189

 

20,726,380