v3.20.2
Net Income (Loss) Per Share (Tables)
6 Months Ended
Jun. 30, 2020
Earnings Per Share [Abstract]  
Schedule of Basic and Diluted Net Loss Per Share
The following tables present the calculation of basic and diluted net income (loss) per share attributable to common stockholders (in thousands, except per share data):
 Three Months Ended June 30,Six Months Ended June 30,
2020201920202019
Numerator:
Net income (loss)$40,766  $(11,079) $88,997  $(12,624) 
Denominator:
Weighted-average shares outstanding - basic191,319  186,678  190,731  184,419  
Weighted-average effect of potentially dilutive securities:
Common stock options538  —  647  —  
RSUs3,613  —  3,791  —  
ESPP obligations11  —  —  —  
2022 Convertible senior notes3,500  —  3,370  —  
2020 Convertible senior notes settlements10  —  44  —  
2022 Warrants2,462  —  2,260  —  
Weighted-average shares outstanding - diluted201,453  186,678  200,843  184,419  
Net income (loss) per share - basic$0.21  $(0.06) $0.47  $(0.07) 
Net income (loss) per share - diluted$0.20  $(0.06) $0.44  $(0.07) 
Schedule of Potentially Dilutive Securities
Potentially dilutive securities that are not included in the calculation of diluted net income (loss) per share because doing so would be antidilutive are as follows (in thousands):
 Three Months Ended June 30,Six Months Ended June 30,
 2020201920202019
Common stock options161  1,370  161  1,370  
RSUs195  10,917  2,537  10,917  
ESPP obligations—  212  178  212  
2022 Notes—  5,807  —  5,807  
2022 Warrants—  5,807  —  5,807  
Total potentially dilutive securities356  24,113  2,876  24,113