Earnings per share | 8. Earnings per share The following table presents the calculation of basic and diluted net income (loss) per share: Three Months Ended June 30, Six Months Ended June 30, (in thousands, except share and per share data) 2017 2016 2017 2016 Numerator: Net income (loss) from continuing operations $ 4,616 $ (2,042 ) $ 15,101 $ 9,847 Interest expense, net of tax 835 - 1,742 1,302 Amortization of debt issuance costs, net of tax 195 - 391 391 Net income (loss), adjusted from continuing operations 5,646 (2,042 ) 17,234 11,540 Net loss from discontinued operations - (8,905 ) - (16,803 ) Net income (loss), adjusted $ 5,646 $ (10,947 ) $ 17,234 $ (5,263 ) Denominator: Weighted-average number of shares—basic 41,013,764 40,202,821 40,871,540 39,872,738 Dilutive securities—equity awards 968,354 - 931,263 1,191,076 Dilutive securities—convertible debt 8,096,476 - 8,096,488 7,720,525 Weighted-average number of shares—diluted 50,078,594 40,202,821 49,899,291 48,784,339 Net income (loss) per share from continuing operations - basic $ 0.11 $ (0.05 ) $ 0.37 $ 0.25 Net loss per share from discontinued operations - basic - (0.22 ) - (0.42 ) Net income (loss) per share - basic $ 0.11 $ (0.27 ) $ 0.37 $ (0.17 ) Net income (loss) per share from continuing operations - diluted $ 0.11 $ (0.05 ) $ 0.35 $ 0.24 Net loss per share from discontinued operations - diluted - (0.22 ) - (0.34 ) Net income (loss) per share - diluted $ 0.11 $ (0.27 ) $ 0.35 $ (0.10 ) For the three and six months ended June 30, 2017 and 2016, basic earnings per share is computed by dividing net income by the weighted average number of shares of common stock outstanding during the period. For the three and six months ended June 30, 2017, along with the six months ended June 30, 2016, diluted earnings per share is computed using the "if-converted" method by dividing the net income adjusted for interest expense and amortization of debt issuance cost, both net of tax, associated with the Notes by the weighted average number of shares of common stock outstanding during the period. The weighted average number of shares is adjusted for the potential dilutive effect of the exercise of stock options and the vesting of restricted stock units along with the assumption of the conversion of the Notes, at the beginning of the period. For the three months ended June 30, 2016, basic and diluted earnings per share is computed by dividing net loss by the weighted average number of shares of common stock outstanding during the period. No adjustment to the net loss was computed under the "if-converted" method as the effect would have been anti-dilutive. For the three and six months ended June 30, 2017, approximately 0.4 million stock options were excluded from the calculation of diluted earnings per share due to the fact that the exercise prices were in excess of the average per share closing price during the period. For the three months ended June 30, 2016, outstanding equity awards to purchase approximately 3.6 million shares of common stock were excluded from the calculation of diluted earnings per share. In addition, for the three months ended June 30, 2016, approximately 7.7 million shares of common stock related to the Company's Notes were excluded from the calculation of diluted earnings per share. All outstanding equity awards to purchase common stock and shares of common stock related to the Company's Notes were excluded from the calculation of diluted earnings per share in the periods in which the Company incurred a net loss. |