XML 37 R15.htm IDEA: XBRL DOCUMENT v3.21.2
NET INCOME (LOSS) PER SHARE
6 Months Ended
Jun. 30, 2021
Earnings Per Share [Abstract]  
NET INCOME (LOSS) PER SHARE NET INCOME (LOSS) PER SHAREBasic net income (loss) per share is computed using the weighted average number of shares of common stock outstanding during the period. Diluted net income (loss) per share is computed using the weighted average number of shares of common stock, adjusted for any dilutive effect of potential common stock. Potential common stock, computed using the treasury stock method, includes stock options, RSUs, RSAs and ESPP.
The following is a reconciliation of the numerators and denominators used in computing basic and diluted net income (loss) per share (in thousands, except per share amounts):

Three Months Ended
June 30,
Six Months Ended
June 30,
 2021202020212020
Numerator:
Net income (loss)$5,341 $(712)$7,377 $(5,540)
Denominator:
Weighted-average common stock outstanding, basic30,982 27,634 29,787 29,320 
  Dilutive effect of potential common shares:
  Stock options, stock awards and ESPP265 — 466 — 
Total shares, diluted31,247 27,634 30,253 29,320 
Basic net income (loss) per share$0.17 $(0.03)$0.25 $(0.19)
Diluted net income (loss) per share$0.17 $(0.03)$0.24 $(0.19)


We include the underlying market condition stock awards in the calculation of diluted earnings per share if the performance condition has been satisfied as of the end of the reporting period and exclude stock equity awards if the performance condition has not been met.

For the three months ended June 30, 2021, we had stock options, RSUs, PSUs and RSAs outstanding that could potentially dilute basic earnings per share in the future, but these were excluded from the computation of diluted net income (loss) per share because their effect would have been anti-dilutive. These outstanding securities consisted of the following (in thousands):

Three Months Ended
June 30,
Six Months Ended
June 30,
2021202020212020
Stock options490 1,2621151,370
RSUs and RSAs37687
490 1,6381151,457