XML 33 R20.htm IDEA: XBRL DOCUMENT v3.21.2
Net (Loss) Income Per Share Attributable to Common Stockholders
3 Months Ended
Jul. 31, 2021
Earnings Per Share [Abstract]  
Net (Loss) Income Per Share Attributable to Common Stockholders Net (Loss) Income Per Share Attributable to Common Stockholders
Basic and diluted net (loss) income per share attributable to common stockholders is presented in conformity with the two-class method required for participating securities. Class A and B common shares have identical liquidation and distribution rights. Prior to the automatic conversion of all shares of redeemable convertible Class A-1 common stock into Class A common stock upon the completion of the IPO, the shares of redeemable convertible Class A-1 common stock had a liquidation preference, but were legal form common stock and participated in losses equally with all common stockholders.
Prior to the automatic conversion of all of its redeemable convertible preferred stock outstanding into Class A and Class B common stock upon the completion of the IPO, the Company considered all redeemable convertible preferred stock to be participating securities because they participated in any dividends declared on the Company’s common stock on an as-if-converted basis. Redeemable convertible preferred stock did not participate in the net (loss) income per share with common stockholders as the holders of the convertible preferred did not have a contractual obligation to share in the Company’s losses.
Accordingly, under the two-class method, the net (loss) income is not allocated to the redeemable convertible preferred stock such that the resulting net loss for all periods presented was allocated on a proportionate basis to shares of Class A, Class A-1, and Class B common stock for the number of days that each class was issued and outstanding during the period.
Basic net (loss) income per share attributable to common stockholders is computed by dividing the net loss by the weighted-average number of shares of common stock outstanding during the period, less shares subject to repurchase. Diluted net (loss) income per share attributable to common stockholders is computed by giving effect to all potential dilutive common stock equivalents outstanding for the period to the extent they are dilutive. For purposes of this calculation, the convertible preferred, stock options, and early exercised stock options subject to repurchase are considered to be potential common stock equivalents but have been excluded from the calculation of diluted net loss per share attributable to common stockholders as their effect is anti-dilutive. Basic net (loss) income per share was the same as diluted net (loss) income per share for the periods presented because the Company was in a loss position for the quarter ended July 31, 2021 and all net income for the quarter ended July 31, 2020 was allocated to noncumulative dividends on preferred stock.
The following table sets forth the computation of basic and diluted net (loss) income per share attributable to common stockholders (in thousands, except per share data):

Three Months Ended July 31,
20212020
Numerator
Net (loss) income attributable to common stockholders$(37,459)$150 
Denominator
Basic and diluted weighted-average Class A common shares outstanding98,655 30,624 
Basic and diluted weighted-average Class A-1 common shares outstanding— 6,667 
Basic and diluted weighted-average Class B common shares outstanding3,500 — 
Basic and diluted net (loss) income per share attributable to common stockholders
Basic and diluted net (loss) income per Class A common shares outstanding$(0.37)$0.00 
Basic and diluted net (loss) income per Class A-1 common shares outstanding$— $0.00 
Basic and diluted net (loss) income per Class B common shares outstanding$(0.37)$0.00 
The potential shares of common stock that were excluded from the computation of diluted net loss per share attributable to common stockholders for the period presented because including them would have had an antidilutive effect were as follows:
As of July 31,
20212020
Convertible preferred stock
Series A*— 3,499,992 
Series B*— 4,559,999 
Series B-1A*— 2,430,635 
Series B-1B*— 92,769 
Series C*— 2,779,738 
Series D— 12,278,422 
Series E— 540,003 
Series F— 5,399,581 
Series G— 3,893,701 
Series H— 1,653,928 
Stock options39,433,289 32,859,250 
RSUs3,897,893 —