v3.24.2
Net (Loss) Income per Share
6 Months Ended
Jun. 30, 2024
Earnings Per Share [Abstract]  
Net (Loss) Income per Share
12. Net (Loss) Income per Share
The Company computed basic net (loss) income per share based on the weighted average number of shares of common stock outstanding during the period. The Company computed diluted net (loss) income per share based on the weighted average number of shares of common stock outstanding plus potentially dilutive common stock equivalents outstanding during the period. For the purposes of this calculation, stock options, restricted stock units, performance stock units, and stock sold through the ESPP are considered common stock equivalents.
A reconciliation of the numerator and denominator used in the calculation of the basic and diluted net (loss) income per share is as follows (in thousands, except share and per share amounts):
 Three Months Ended June 30,Six Months Ended June 30,
 2024202320242023
Numerator:
Net (loss) income$(60,200)$18,960 $(49,198)$27,522 
Denominator:
Weighted average shares used to compute net (loss) income attributable to common stockholders:
Basic38,793,341 38,320,999 38,755,337 38,254,042 
Potential dilutive stock-based options and awards— 880,156 — 897,370 
Diluted38,793,341 39,201,155 38,755,337 39,151,412 
Net (loss) income per share:
Basic$(1.55)$0.49 $(1.27)$0.72 
Diluted$(1.55)$0.48 $(1.27)$0.70 
For the three months ended June 30, 2024 and 2023, outstanding stock-based awards of 1,131 thousand and 8 thousand shares, respectively, and for the six months ended June 30, 2024 and 2023 outstanding stock-based awards of 1,215 thousand and 8 thousand shares, respectively, were excluded from the computation of diluted net (loss) income per share because their effect would have been anti-dilutive in the periods presented.