v3.24.0.1
Net Income (Loss) Per Share (Tables)
12 Months Ended
Dec. 31, 2023
Earnings Per Share [Abstract]  
Summary of Calculation of Basic and Diluted Net Loss Per Share
The following table presents the calculation of basic and diluted net income (loss) per share as follows (in thousands, except per share data):
Years Ended December 31,
202320222021
Numerator:
Net income (loss) $(709,561)$(498,005)$242,385 
Denominator:
Basic net income (loss) per share:
Weighted-average common shares outstanding — basic141,572137,668132,710
Net income (loss) per share — basic$(5.01)$(3.62)$1.83 
Diluted net income (loss) per share:
Weighted-average common shares outstanding — basic 141,572137,668132,710
Effect of potentially dilutive securities:
Restricted stock units— — 2,744 
Stock options— — 6,214 
Weighted-average common shares outstanding — diluted 141,572137,668141,668
Net income (loss) per share — diluted $(5.01)$(3.62)$1.71