12. Net (Loss) Income Per Share Available to Common Stockholders
Potentially dilutive securities are excluded from the calculation of diluted net (loss) income per share available to common stockholders if their inclusion is anti-dilutive.
The following table shows the weighted-average outstanding securities considered anti-dilutive and therefore excluded from the computation of diluted net (loss) income per share available to common stockholders (in thousands):
|
|
Year Ended December 31,
|
|
|
|
2018
|
|
|
2017
|
|
Convertible preferred stock
|
|
|
5,048
|
|
|
|
4,372
|
|
Common stock options and RSUs
|
|
|
1,639
|
|
|
|
346
|
|
Warrants for common stock
|
|
|
21
|
|
|
|
100
|
|
Total
|
|
|
6,708
|
|
|
|
4,818
|
|
The following is a reconciliation of the numerator (net income or loss) and denominator (number of shares) used in the calculation of basic and diluted net (loss) income per share available to common stockholders (in thousands):
|
|
Year Ended December 31,
|
|
|
|
2018
|
|
|
2017
|
|
Numerator
|
|
|
|
|
|
|
|
|
Net (loss) income
|
|
$
|
(13,343
|
)
|
|
$
|
14,596
|
|
Less: Deemed dividend on convertible preferred stock
|
|
|
—
|
|
|
|
(5,603
|
)
|
Less: Allocation of undistributed earnings to participating
securities
|
|
|
—
|
|
|
|
(3,279
|
)
|
Net (loss) income available to common stockholders, basic
|
|
$
|
(13,343
|
)
|
|
$
|
5,714
|
|
Adjustments to undistributed earnings allocated to participating
securities
|
|
|
—
|
|
|
|
96
|
|
Net (loss) income available to common stockholders, diluted
|
|
$
|
(13,343
|
)
|
|
$
|
5,810
|
|
Denominator
|
|
|
|
|
|
|
|
|
Weighted average shares used in computing basic net (loss)
income per share available to common stockholders
|
|
|
8,373
|
|
|
|
7,619
|
|
Effect of dilutive stock options
|
|
|
—
|
|
|
|
360
|
|
Effect of dilutive warrants
|
|
|
—
|
|
|
|
1
|
|
Weighted average shares used in computing diluted net (loss)
income per share available to common stockholders
|
|
|
8,373
|
|
|
|
7,980
|
|
Basic net (loss) income per share of common stock
|
|
$
|
(1.59
|
)
|
|
$
|
0.75
|
|
Diluted net (loss) income per share of common stock
|
|
$
|
(1.59
|
)
|
|
$
|
0.73
|
|
|