v3.22.2.2
Net Income (Loss) Per Share - Summary of Calculation of Basic and Diluted Net Income (Loss) Per Share (Details) - USD ($)
$ / shares in Units, shares in Thousands, $ in Thousands
3 Months Ended 9 Months Ended
Oct. 31, 2022
Oct. 31, 2021
Oct. 31, 2022
Oct. 31, 2021
Numerator:        
Net income (loss) $ (74,721) $ 43,412 $ (241,052) $ 102,626
Denominator:        
Weighted-average shares outstanding, basic (in shares) 255,753 248,468 253,975 246,348
Weighted-average shares outstanding, diluted (in shares) 255,753 254,760 253,975 253,917
Net loss per share, basic (in dollars per share) $ (0.29) $ 0.17 $ (0.95) $ 0.42
Net loss per share, diluted (in dollars per share) $ (0.29) $ 0.17 $ (0.95) $ 0.40
Class A        
Numerator:        
Net income (loss) $ (58,648) $ 33,417 $ (188,757) $ 78,546
Reallocation of net income as a result of conversion of Class B to Class A common stock 0 9,995 0 24,080
Reallocation of net income to Class B common stock 0 0 0 0
Net income (loss) for diluted calculation $ (58,648) $ 43,412 $ (188,757) $ 102,626
Denominator:        
Weighted-average shares outstanding, basic (in shares) 200,740 191,259 198,876 188,546
Conversion of Class B to Class A common stock (in shares) 0 57,209 0 57,802
Dilutive effect of share-based awards (in shares) 0 4,933 0 6,456
Dilutive effect of warrants related to the issuance of convertible senior notes (in shares) 0 1,359 0 1,113
Weighted-average shares outstanding, diluted (in shares) 200,740 254,760 198,876 253,917
Net loss per share, basic (in dollars per share) $ (0.29) $ 0.17 $ (0.95) $ 0.42
Net loss per share, diluted (in dollars per share) $ (0.29) $ 0.17 $ (0.95) $ 0.40
Class B        
Numerator:        
Net income (loss) $ (16,073) $ 9,995 $ (52,295) $ 24,080
Reallocation of net income as a result of conversion of Class B to Class A common stock 0 0 0 0
Reallocation of net income to Class B common stock 0 (247) 0 (718)
Net income (loss) for diluted calculation $ (16,073) $ 9,748 $ (52,295) $ 23,362
Denominator:        
Weighted-average shares outstanding, basic (in shares) 55,013 57,209 55,099 57,802
Conversion of Class B to Class A common stock (in shares) 0 0 0 0
Dilutive effect of share-based awards (in shares) 0 0 0 0
Dilutive effect of warrants related to the issuance of convertible senior notes (in shares) 0 0 0 0
Weighted-average shares outstanding, diluted (in shares) 55,013 57,209 55,099 57,802
Net loss per share, basic (in dollars per share) $ (0.29) $ 0.17 $ (0.95) $ 0.42
Net loss per share, diluted (in dollars per share) $ (0.29) $ 0.17 $ (0.95) $ 0.40