v3.22.0.1
Net Income Per Share
12 Months Ended
Dec. 31, 2021
Earnings Per Share [Abstract]  
Net Income Per Share Net Income Per Share Basic net income per share attributable to common stockholders is computed by dividing net income attributable to common stockholders by the weighted-average number of shares of common stock outstanding during the period. Diluted net income per share is computed by dividing net income attributable to common stockholders by the weighted-average number of shares of common stock outstanding during the period, adjusted for the effects of dilutive shares of common stock, which are comprised of outstanding stock options, RSUs, ESPP obligations, the 2022 Notes and the 2022 and 2018 Warrants. Stock awards with performance or market conditions are included in dilutive shares to the extent all conditions are met. The dilutive potential shares of common stock are computed using the treasury stock method or the as-if converted method, as applicable. The effects of outstanding stock options, RSUs, ESPP obligations, 2022 Notes and 2022 and 2018 Warrants are excluded from the computation of diluted net income per share in periods in which the effect would be antidilutive.
The following tables present the calculation of basic and diluted net income per share attributable to common stockholders (in thousands, except per share data):
 Year Ended December 31,
 202120202019
Numerator:
Net income$230,141 $118,503 $626,698 
Denominator:
Weighted-average shares outstanding - basic
198,094 193,096 186,466 
Weighted-average effect of potentially dilutive securities:
Common stock options293 547 1,109 
RSUs3,429 4,421 4,897 
2018 Warrants— — 842 
2022 Notes535 842 2,737 
2022 Notes settlements116 1,931 — 
2022 Warrants649 920 1,172 
Partial settlement of 2022 Warrants51 721 — 
Weighted-average shares outstanding - diluted203,167 202,478 197,223 
Net income per share - basic$1.16 $0.61 $3.36 
Net income per share - diluted$1.13 $0.59 $3.18 

Potentially dilutive securities that are not included in the calculation of diluted net income per share because doing so would be antidilutive are as follows (in thousands):
 Year Ended December 31,
 202120202019
Common stock options998 — 161 
RSUs381 347 413 
ESPP obligations209 224 273 
Total potentially dilutive securities1,588 571 847