v3.19.2
Net income (loss) per share attributable to common stockholders
6 Months Ended
Jun. 30, 2019
Net income (loss) per share attributable to common stockholders  
Net income (loss) per share attributable to common stockholders

16. Net income (loss) per share attributable to common stockholders

The following table sets forth the computation of basic and diluted net income (loss) per share attributable to common stockholders:

                                                                                                                                                                                  

Three Months Ended

Six Months Ended

June 30, 

June 30, 

    

2019

    

2018

    

2019

    

2018

(in thousands)

Numerator:

Net income (loss) attributable to common stockholders, basic and diluted

$

216

$

2,115

$

(4,937)

$

(1,114)

Denominator:

Weighted average common stock, basic

 

44,041

 

41,961

43,786

41,645

Effect of dilutive stock options

191

472

Effect of dilutive RSUs

146

2,786

Weighted average common stock, diluted

44,378

45,219

43,786

41,645

Net income (loss) per share attributable to common stockholders:

Basic

$

0.00

$

0.05

$

(0.11)

$

(0.03)

Diluted

$

0.00

0.05

$

(0.11)

(0.03)

For the six months ended June 30, 2019 and 2018, we excluded all assumed exercises of stock options and the assumed issuance of common stock under RSUs from the computation of diluted net loss per share as the effect would be anti-dilutive due to the net loss for the period. For the three months ended June 30, 2019 and 2018, we excluded the assumed issuance of approximately 435,000 shares and 27,000 shares, respectively, of common stock under RSUs from the computation of diluted net income per share as the inclusion would have been anti-dilutive. For the three and six months ended June 30, 2019, we also excluded the shares that would be issuable assuming conversion of the Convertible Notes and the shares for the capped call as their effect would be anti-dilutive. Diluted EPS for our Convertible Notes is calculated under the treasury method in accordance with ASC 260, Earnings Per Share.

On April 1, 2013, the Company approved a stock repurchase program to repurchase up to $10,000 of the Company’s common stock in the open market, exclusive of any commissions, markups or expenses. The stock repurchased will be retired and will resume the status of authorized but unissued shares of common stock. The Company did not repurchase any of our common stock during the three and six months ended June 30, 2019. As of June 30, 2019, the remaining approved amount for repurchases was approximately $5,180. In July 2019, the stock repurchase plan was terminated and was replaced with a new stock repurchase program to repurchase up to $20,000 of the Company’s common stock in the open market.