v3.22.2.2
Net Income (Loss) Per Share
9 Months Ended
Oct. 31, 2022
Earnings Per Share [Abstract]  
Net Income (Loss) Per Share Net Income (Loss) Per Share
Basic net income (loss) per share is computed by dividing net income (loss) by the weighted-average number of shares of common stock outstanding during the period, net of treasury stock. Diluted net income (loss) per share is computed by giving effect to all potentially dilutive shares of common stock, including our convertible senior notes, outstanding warrants related to the issuance of the convertible senior notes, and outstanding share-based awards consisting primarily of unvested RSUs and ESPP obligations.
The net income (loss) per share is allocated based on the contractual participation rights of the Class A common shares and Class B common shares as if the income (loss) for the period had been distributed. As the liquidation and dividend rights are identical, the net income (loss) is allocated on a proportionate basis. The computation of the diluted net income (loss) per share of Class A common stock assumes the conversion of our Class B common stock to Class A common stock, while the diluted net income (loss) per share of Class B common stock does not assume the conversion of those shares.
Basic and diluted net loss per share was the same for the three and nine months ended October 31, 2022, as the inclusion of all potential common shares outstanding would have been anti-dilutive.
The following table presents the calculation of basic and diluted net income (loss) per share (in thousands, except per share data):
Three Months Ended October 31, Nine Months Ended October 31,
2022202120222021
Class AClass BClass AClass BClass AClass BClass AClass B
Net income (loss) per share, basic:
Numerator:
Net income (loss)$(58,648)$(16,073)$33,417 $9,995 $(188,757)$(52,295)$78,546 $24,080 
Denominator:
Weighted-average shares outstanding, basic200,740 55,013 191,259 57,209 198,876 55,099 188,546 57,802 
Net income (loss) per share, basic$(0.29)$(0.29)$0.17 $0.17 $(0.95)$(0.95)$0.42 $0.42 
Net income (loss) per share, diluted:
Numerator:
Net income (loss)$(58,648)$(16,073)$33,417 $9,995 $(188,757)$(52,295)$78,546 $24,080 
Reallocation of net income as a result of conversion of Class B to Class A common stock— — 9,995 — — — 24,080 — 
Reallocation of net income to Class B common stock— — — (247)— — — (718)
Net income (loss) for diluted calculation (58,648)(16,073)43,412 9,748 (188,757)(52,295)102,626 23,362 
Denominator:
Weighted-average shares outstanding, basic200,740 55,013 191,259 57,209 198,876 55,099 188,546 57,802 
Conversion of Class B to Class A common stock— — 57,209 — — — 57,802 — 
Dilutive effect of share-based awards— — 4,933 — — — 6,456 — 
Dilutive effect of warrants related to the issuance of convertible senior notes— — 1,359 — — — 1,113 — 
Weighted-average shares outstanding, diluted200,740 55,013 254,760 57,209 198,876 55,099 253,917 57,802 
Net income (loss) per share, diluted$(0.29)$(0.29)$0.17 $0.17 $(0.95)$(0.95)$0.40 $0.40 
The computation of diluted net income (loss) per share does not include the effect of the following potential weighted-average shares of common stock. The effects of these potentially outstanding shares were not included in the calculation of diluted net income (loss) per share because the effect would have been anti-dilutive (in thousands):
 Three Months Ended October 31, Nine Months Ended October 31,
 2022202120222021
Shares related to outstanding share-based awards16,105 151 15,453 1,801 
Shares related to the convertible senior notes5,182 7,817 6,928 7,817 
Shares subject to warrants related to the issuance of convertible senior notes7,818 — 7,818 — 
Total29,105 7,968 30,199 9,618