v3.19.2
Net Income (Loss) Per Share
6 Months Ended
Jun. 30, 2019
Earnings Per Share [Abstract]  
Net Income (Loss) Per Share

13. NET INCOME (LOSS) PER SHARE

The Company’s basic net income (loss) per share is calculated by dividing the net income (loss) by the weighted-average number of shares of common stock outstanding for the period. For purposes of the calculation of diluted net income (loss) per share options to purchase common stock, restricted stock units and unvested shares of common stock issued upon the early exercise of stock options are considered common stock equivalents but have been excluded from the calculation of diluted net loss per share as their effect is antidilutive.

The following table presents the calculation of basic and diluted net income (loss) per share (in thousands, except per share data):

 

 

Three Months Ended

 

 

Six Months Ended

 

 

 

June 30,

2019

 

 

June 30,

2018

 

 

June 30,

2019

 

 

June 30,

2018

 

Numerator:

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Net income (loss)

 

$

(9,333

)

 

$

526

 

 

$

(19,065

)

 

$

(6,108

)

Denominator:

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Weighted-average shares used in computing

   net income (loss) per share, basic and diluted

 

 

114,572

 

 

 

102,652

 

 

 

112,734

 

 

 

101,079

 

Net income (loss) per share, basic and diluted

 

$

(0.08

)

 

$

0.01

 

 

$

(0.17

)

 

$

(0.06

)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Weighted-average shares used in computing

   net income (loss) per share, diluted

 

 

114,572

 

 

 

121,698

 

 

 

112,734

 

 

 

101,079

 

Net income (loss) per share, diluted

 

$

(0.08

)

 

$

0.00

 

 

$

(0.17

)

 

$

(0.06

)

 

Common shares that would be excluded from the calculation of diluted net loss per share because of their anti-dilutive effect are as follows (in thousands):

 

 

 

Three Months Ended

 

 

Six Months Ended

 

 

 

June 30,

2019

 

 

June 30,

2018

 

 

June 30,

2019

 

 

June 30,

2018

 

Equity awards to purchase common stock

 

 

16,595

 

 

 

1,062

 

 

 

16,595

 

 

 

21,485

 

Unvested shares of common stock issued upon early

   exercise of stock options and business acquisition

 

 

45

 

 

 

 

 

 

45

 

 

 

105

 

Total

 

 

16,640

 

 

 

1,062

 

 

 

16,640

 

 

 

21,590