v3.22.2.2
NET INCOME (LOSS) PER SHARE (Tables)
9 Months Ended
Sep. 30, 2022
Earnings Per Share [Abstract]  
Schedule of computation of basic and diluted net income (loss) per common share
The following table sets forth the computation of basic and diluted net income (loss) per common share for the three and nine months ended September 30, 2022 and 2021 (in thousands, except per share amounts):
Three Months Ended
September 30,
Nine Months Ended
September 30,
2022202120222021
Numerator:
   Net (loss) income—basic$(693)$17,660 $26,011 $47,110 
ASU 2020-06 convertible notes if-converted method adjustment— — 3,112 — 
   Adjusted net (loss) income—diluted(693)17,660 29,123 47,110 
Denominator:
   Weighted average common shares outstanding—basic45,831 44,476 45,400 44,151 
Computation of diluted securities:
ASU 2020-06 convertible notes if-converted method adjustment— — 5,608 — 
   Dilutive effect of stock options— 827 937 1,132 
   Dilutive effect of RSUs— 160 272 337 
Dilutive effect of conversion premium on the 2022 Notes— — — 51 
Dilutive effect of ESPP purchase options— — 
   Weighted average common shares outstanding—diluted45,831 45,463 52,220 45,674 
Net (loss) income per share:
   Basic net (loss) income per common share$(0.02)$0.40 $0.57 $1.07 
   Diluted net (loss) income per common share$(0.02)$0.39 $0.56 $1.03 
Schedule of potential dilutive effect of the securities excluded from the calculation of diluted loss per share The following table summarizes the outstanding stock options, RSUs and convertible senior notes that were excluded from the diluted net (loss) income per common share calculation because the effects of including these potential shares were antidilutive in the periods presented (in thousands):
Three Months Ended
September 30,
Nine Months Ended
September 30,
2022202120222021
Weighted average number of stock options6,344 2,707 2,439 1,895 
Convertible senior notes5,608 — 797 — 
Weighted average number of RSUs1,180 369 277 132 
Weighted average ESPP purchase options— 26 — 
      Total13,132 3,102 3,513 2,036