v3.23.2
Net Income (Loss) Per Share
6 Months Ended
Jul. 31, 2023
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.
Basic and diluted net income (loss) per share was the same for the three and six months ended July 31, 2023, and 2022. For the three and six months ended July 31, 2022, potentially dilutive securities were excluded from the computation of diluted net income (loss) per share calculations because the impact of including them 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 July 31, Six Months Ended July 31,
2023202220232022
Class AClass BClass AClass BClass AClass BClass AClass B
Net income (loss) per share, basic:
Numerator:
Net income (loss)$62,207 $16,453 $(50,282)$(13,876)$62,241 $16,555 $(130,088)$(36,243)
Denominator:
Weighted-average shares outstanding, basic206,559 54,632 199,342 55,013 205,393 54,633 197,928 55,143 
Net income (loss) per share, basic$0.30 $0.30 $(0.25)$(0.25)$0.30 $0.30 $(0.66)$(0.66)
Net income (loss) per share, diluted:
Numerator:
Net income (loss)$62,207 $16,453 $(50,282)$(13,876)$62,241 $16,555 $(130,088)$(36,243)
Reallocation of net income as a result of conversion of Class B to Class A common stock16,453 — — — 16,555 — — — 
Reallocation of net income to Class B common stock— (202)— — — (182)— — 
Net income (loss) for diluted calculation78,660 16,251 (50,282)(13,876)78,796 16,373 (130,088)(36,243)
Denominator:
Weighted-average shares outstanding, basic206,559 54,632 199,342 55,013 205,393 54,633 197,928 55,143 
Conversion of Class B to Class A common stock54,632 — — — 54,633 — — — 
Dilutive effect of share-based awards3,244 — — — 2,897 — — — 
Weighted-average shares outstanding, diluted264,435 54,632 199,342 55,013 262,923 54,633 197,928 55,143 
Net income (loss) per share, diluted$0.30 $0.30 $(0.25)$(0.25)$0.30 $0.30 $(0.66)$(0.66)
The computation of diluted net income (loss) per share does not include the effect of the following potentially outstanding 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 July 31, Six Months Ended July 31,
 2023202220232022
Shares related to outstanding share-based awards2,531 16,599 3,220 15,127 
Shares related to the convertible senior notes— 7,815 — 7,816 
Shares subject to warrants related to the issuance of convertible senior notes— 7,818 — 7,818 
Total2,531 32,232 3,220 30,761