v3.24.0.1
NET INCOME (LOSS) PER SHARE
12 Months Ended
Dec. 31, 2023
Earnings Per Share [Abstract]  
NET INCOME PER SHARE NET INCOME (LOSS) PER SHARE
Basic net income (loss) per share is computed by dividing the net income (loss) 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 by the weighted-average number of shares of common stock outstanding adjusted for the dilutive effect of all potential shares of common stock. In periods when the Company reported a net loss, diluted net loss per share is the same as basic net loss per share because the effects of potentially dilutive items were anti-dilutive.

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 

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