v3.22.2.2
Net Income (Loss) Per Share (Tables)
9 Months Ended
Oct. 31, 2022
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 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 
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 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