v3.22.2.2
Net (Loss) Income Per Share (Tables)
9 Months Ended
Sep. 30, 2022
Earnings Per Share [Abstract]  
Schedule of Calculation of Basic and Diluted Net Income Per Share
The following table presents the calculation of basic and diluted net (loss) income per share for the periods presented (in thousands, except share and per share amounts):
 Three Months Ended 
 September 30,
Nine Months Ended 
 September 30,
 2022202120222021
Numerator:
Net (loss) income$(963,068)$89,930 $(803,836)$331,950 
Add back interest expense, net of tax attributable to assumed conversion of convertible senior notes— 1,594 — 3,312 
Net (loss) income attributable to common stockholders—diluted$(963,068)$91,524 $(803,836)$335,262 
Denominator:
Weighted-average common shares outstanding—basic126,349,250 126,633,789 126,985,731 126,753,641 
Dilutive effect of assumed conversion of options to purchase common stock— 4,126,970 — 4,229,632 
Dilutive effect of assumed conversion of restricted stock units— 1,936,390 — 2,042,745 
Dilutive effect of assumed conversion of convertible senior notes (1)— 14,716,766 — 12,840,779 
Weighted-average common shares outstanding—diluted126,349,250 147,413,915 126,985,731 145,866,797 
Net (loss) income per share attributable to common stockholders—basic$(7.62)$0.71 $(6.33)$2.62 
Net (loss) income per share attributable to common stockholders—diluted$(7.62)$0.62 $(6.33)$2.30 
(1)The $1.0 billion aggregate principal amount of 0.25% Convertible Senior Notes due 2028 (the “2021 Notes”), $650.0 million aggregate principal amount of 0.125% Convertible Senior Notes due 2027 (the “2020 Notes”), $649.9 million aggregate principal amount of 0.125% Convertible Senior Notes due 2026 (the “2019 Notes”), and 0% Convertible Senior Notes due 2023 (the “2018 Notes” and together with the 2021 Notes, 2020 Notes, and 2019 Notes, the “Notes”) were anti-dilutive for the three and nine months ended September 30, 2022 and dilutive for the three and nine months ended September 30, 2021.
Schedule of Anti-Dilutive Securities Excluded from Computation of Net Income Per Share
The following potential common shares were excluded from the calculation of diluted net (loss) income per share attributable to common stockholders because their effect would have been anti-dilutive for the periods presented:
 Three Months Ended 
 September 30,
Nine Months Ended 
 September 30,
 2022202120222021
Stock options2,999,502 193,919 3,197,330 135,179 
Restricted stock units6,021,635 54,189 5,377,776 475,475 
Convertible senior notes14,715,893 — 14,716,800 — 
Total anti-dilutive securities23,737,030 248,108 23,291,906 610,654