v3.24.0.1
Net Income (Loss) Per Share
12 Months Ended
Dec. 31, 2023
Earnings Per Share [Abstract]  
Net Income (Loss) Per Share NET INCOME (LOSS) PER SHARE
The Company’s basic net income (loss) per share is calculated by dividing the net income (loss) by the weighted-average number of shares of common stock outstanding for the period. The Company uses the two-class method to calculate net income (loss) per share. Except with respect to certain voting, conversion, and transfer rights and as otherwise expressly provided in the Company’s amended and restated certificate of incorporation or required by applicable law, shares of the Company’s Class A common stock and Class B common stock have the same rights and privileges and rank equally, share ratably, and are identical in all respects as to all matters. Accordingly, basic and diluted net income (loss) per share are the same for both classes.
For purposes of the calculation of diluted net income (loss) per share, options to purchase common stock and restricted stock units are considered common stock equivalents. Dilutive shares of common stock are determined by applying the treasury stock method. The dilutive shares are excluded from the calculation of diluted net loss per share in the period of net loss, as their effect is antidilutive.
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 
Common stock equivalents excluded from the calculation of diluted net income (loss) per share because of their anti-dilutive effect were 14.0 million, 14.4 million and 1.1 million units of equity awards to purchase common stock granted under the Company’s equity plans for the years ended December 31, 2023, 2022, and 2021, respectively.