v3.7.0.1
Net Loss Per Share
3 Months Ended
Apr. 30, 2017
Earnings Per Share [Abstract]  
Net Loss Per Share
Net Loss Per Share
Basic net loss per share attributable to common stockholders is computed by dividing the net loss attributable to common stockholders by the weighted-average number of shares of common stock outstanding during the period. Diluted net loss per share is computed by giving effect to all potential shares of common stock, including our outstanding stock options, outstanding warrants, common stock related to unvested early exercised stock options, common stock related to unvested restricted stock units and awards and convertible senior notes to the extent dilutive, and common stock issuable pursuant to the ESPP. Basic and diluted net loss per share was the same for each period presented, as the inclusion of all potential common shares outstanding would have been anti-dilutive.
The net loss per share attributable to common stockholders is allocated based on the contractual participation rights of the Class A common shares and Class B common shares as if the loss for the year had been distributed. As the liquidation and dividend rights are identical, the net loss attributable to common stockholders is allocated on a proportionate basis.
We consider shares issued upon the early exercise of options subject to repurchase and unvested restricted stock awards to be participating securities because holders of such shares have non-forfeitable dividend rights in the event of our declaration of a dividend for common shares. In future periods, to the extent we are profitable, we will subtract earnings allocated to these participating securities from net income to determine net income attributable to common stockholders.
The following table presents the calculation of basic and diluted net loss attributable to common stockholders per share (in thousands, except per share data):
 
Three Months Ended April 30,
 
2017
 
2016
 
 
* As Adjusted
 
Class A
 
Class B
 
Class A
 
Class B
Net loss per share, basic and diluted:
 
 
 
 
 
 
 
Numerator:
 
 
 
 
 
 
 
Allocation of distributed net loss
$
(40,599
)
 
$
(23,445
)
 
$
(47,433
)
 
$
(31,070
)
Denominator:
 
 
 
 
 
 
 
Weighted-average common shares outstanding
129,206

 
74,612

 
117,537

 
76,992

Basic and diluted net loss per share
$
(0.31
)
 
$
(0.31
)
 
$
(0.40
)
 
$
(0.40
)

*
Adjusted to reflect adoption of ASU No. 2014-09, Revenue from Contracts with Customers. For further information, see Note 2.

The anti-dilutive securities excluded from the weighted-average shares used to calculate the diluted net loss per common share were as follows (in thousands):
 
Three Months Ended April 30,
 
2017
 
2016
Outstanding common stock options
8,468

 
11,843

Shares subject to repurchase
70

 
492

Unvested restricted stock awards, units, and PRSUs
15,133

 
13,214

Shares related to the convertible senior notes
7,261

 
7,261

Shares subject to warrants related to the issuance of convertible senior notes
7,261

 
7,261

Shares issuable pursuant to the ESPP
485

 
314

 
38,678

 
40,385