Net Income (Loss) Per Common Share Data
12 Months Ended
Dec. 31, 2013
Earnings Per Share [Abstract]  
Net Income (Loss) Per Common Share Data
NET INCOME (LOSS) PER COMMON SHARE DATA
Basic net income (loss) per share is computed using the weighted-average number of common shares outstanding during the period. Diluted net income (loss) per share is computed using the weighted-average number of common shares and, if dilutive, potential common shares outstanding during the period. The Company’s potential common shares consist of the incremental common shares issuable upon the exercise of stock options, and to a lesser extent, shares issuable upon the release of RSUs. In addition, for the year ended December 31, 2012, the potential common shares included the conversion of preferred stock on an as if converted basis prior to the Company's initial public offering in February 2012. The dilutive effect of these potential common shares is reflected in diluted earnings per share by application of the treasury stock method. The Company considered its preferred stock to be participating securities and, in accordance with the two-class method, earnings allocated to preferred stock and the related number of outstanding shares of preferred stock were excluded from the computation of basic and diluted net income (loss) per common share.
The following table presents the calculation of basic and diluted net income (loss) per share for the years ended December 31, 2011, 2012, and 2013 (in thousands, except share and per share amounts):
 
Year Ended December 31,
 
2011
 
2012
 
2013
Net income (loss)
$
9,932

 
$
3,815

 
$
(1,367
)
Less: Undistributed earnings allocated to preferred stockholders
(8,583
)
 
—

 
—

  Net income (loss) attributable to common stockholders
$
1,349

 
$
3,815

 
$
(1,367
)
Weighted-average common shares used to compute net income (loss) per share attributable to common stockholders
2,303,443

 
24,411,194

 
27,306,882

Basic net income (loss) per share
$
0.59

 
$
0.16

 
$
(0.05
)
Diluted net income (loss) per share:
 
 
 
 
 
    Net income (loss)
$
1,349

 
$
3,815

 
$
(1,367
)
    Add: Undistributed earnings allocated to preferred stockholders
8,583

 
—

 
—

  Net income (loss) attributable to common stockholders
$
9,932

 
$
3,815

 
$
(1,367
)
    Number of shares used in basic calculation
2,303,443

 
24,411,194

 
27,306,882

    Weighted-average effect of dilutive securities:
 
 
 
 
 
Add:
 
 
 
 
 
    Conversion of preferred stock (as if converted basis)
17,395,136

 
1,948,635

 
—

    Stock options and RSUs (1)
2,275,824

 
1,737,484

 
—

Number of shares used in diluted calculation (1)
21,974,403

 
28,097,313

 
27,306,882

Diluted net (loss) income per share attributable to common stockholders
$
0.45

 
$
0.14

 
$
(0.05
)
Note:
(1)
Stock options and RSUs are not included in the calculation of diluted net loss per share for the year ended December 31, 2013 because the Company had a net loss for that year. Accordingly, the inclusion of these equity awards would have had an antidilutive effect on the calculation of diluted loss per share.
The following equivalent shares were excluded from the calculation of diluted net income (loss) per share because their effect would have been antidilutive for the periods presented:
 
Year Ended December 31,

2011
 
2012
 
2013
Antidilutive Equity Awards:
 
 
 
 
 
  Stock options
367,250

 
137,850

 
3,356,358

Total
367,250

 
137,850

 
3,356,358