XML 24 R14.htm IDEA: XBRL DOCUMENT v3.22.2.2
NET INCOME (LOSS) PER SHARE
6 Months Ended
Jun. 30, 2022
Earnings Per Share [Abstract]  
NET INCOME (LOSS) PER SHARE NET INCOME (LOSS) PER SHARE
Basic 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, stock awards and ESPP.
The following is a reconciliation of the 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,
2022202120222021
Denominator:
Weighted-average shares outstanding, basic33,616 30,982 33,638 29,787 
Shares related to outstanding options, unvested RSUs, RSAs, PSUs and ESPP— 265 317 466 
Weighted average shares outstanding, diluted33,616 31,247 33,955 30,253 
We include market condition-based performance restricted stock units 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 and six months ended June 30, 2022 and 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 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,
2022202120222021
Stock options210 490 224 115 
Restricted stock units, restricted stock awards and market condition-based restricted stock units17 — 35 — 
Total227 490 259 115