v3.23.2
Net Income (Loss) Per Share (Tables)
6 Months Ended
Jul. 31, 2023
Earnings Per Share [Abstract]  
Summary of Calculation of Basic and Diluted Net Income (Loss) Per Share
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)
Shares Excluded from Diluted Net Income (Loss) Per Share 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