v3.24.0.1
NET INCOME (LOSS) PER SHARE (Tables)
12 Months Ended
Dec. 31, 2023
Earnings Per Share [Abstract]  
Basic and Diluted Net Income Per Share
The following table presents the calculation of basic and diluted net income per share (in thousands, except per share data):
Year Ended December 31,
202320222021
Numerator:
Net income (loss)$(21,124)$(553,005)$158,826 
Less: Net loss attributable to noncontrolling interests(30,896)(12,258)(7,458)
Net income (loss) attributable to common stockholders$9,772 $(540,747)$166,284 
Denominator:
Basic shares:
Weighted-average shares used to compute basic net income (loss) per share608,856 578,949 458,432 
Diluted shares:
Stock options, restricted stock, and employee stock purchase plan5,168 — 17,849 
Convertible notes— — 408 
Common stock warrants— — 25,090 
Weighted-average shares used to compute diluted net income (loss) per share614,024578,949501,779
Net income (loss) per share attributable to common stockholders:
Basic$0.02 $(0.93)$0.36 
Diluted$0.02 $(0.93)$0.33 
Antidilutive Securities Excluded from Calculation of Diluted Net Income (Loss) Per Share
The following potential common shares were excluded from the calculation of diluted net income per share because their effect would have been anti-dilutive for the periods presented (in thousands):
Year Ended December 31,
202320222021
Stock options, restricted stock, and employee stock purchase plan40,431 32,185 7,680 
Convertible notes14,297 18,029 23,947 
Common stock warrants20,243 33,699 17,271 
     Total anti-dilutive securities74,971 83,913 48,898