v3.10.0.1
BASIC AND DILUTED NET EARNINGS PER SHARE
6 Months Ended
Jun. 30, 2018
Earnings Per Share [Abstract]  
BASIC AND DILUTED NET EARNINGS PER SHARE
NOTE 7:-
BASIC AND DILUTED NET EARNINGS PER SHARE

Basic net earnings per share is computed by dividing the net earnings by the weighted-average number of shares of common stock outstanding during the period.

No shares were excluded from the calculation of diluted net earnings per share due to their anti-dilutive effect for the three and six months ended June 30, 2018 (unaudited).

The total weighted average number of shares related to the outstanding stock options, excluded from the calculation of diluted net earnings per share due to their anti-dilutive effect was 199,950 and 395,032 for the three and six months ended June 30, 2017 (unaudited), respectively.

The following table presents the computation of basic and diluted net earnings per share for the periods presented (in thousands, except per share data):

   
Three months ended
June 30,
   
Six months ended
June 30,
 
   
2018
   
2017
   
2018
   
2017
 
   
(unaudited)
   
(unaudited)
 
Numerator:
                       
Net income
 
$
34,568
   
$
22,524
   
$
70,254
   
$
36,699
 
                                 
Denominator:
                               
Shares used in computing net earnings per share of common stock, basic
   
45,216,253
     
41,700,399
     
44,726,382
     
41,525,285
 
Effect of stock-based awards
   
3,075,027
     
3,131,191
     
3,258,435
     
2,810,236
 
 Shares used in computing net earnings per share of common stock,  diluted
   
48,291,280
     
44,831,590
     
47,984,817
     
44,335,521
 
                                 
Basic net income per share
 
$
0.76
   
$
0.54
   
$
1.57
   
$
0.88
 
Diluted net income per share
 
$
0.72
   
$
0.50
   
$
1.46
   
$
0.83