v3.23.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 6 Months Ended
Jul. 31, 2023
Jul. 31, 2022
Jul. 31, 2023
Jul. 31, 2022
Numerator:        
Net income (loss) $ 78,660 $ (64,158) $ 78,796 $ (166,331)
Denominator:        
Weighted-average shares outstanding, basic (in shares) 261,191 254,355 260,026 253,071
Weighted-average shares outstanding, diluted (in shares) 264,435 254,355 262,923 253,071
Net income (loss) per share, basic (in dollars per share) $ 0.30 $ (0.25) $ 0.30 $ (0.66)
Net income (loss) per share, diluted (in dollars per share) $ 0.30 $ (0.25) $ 0.30 $ (0.66)
Class A        
Numerator:        
Net income (loss) $ 62,207 $ (50,282) $ 62,241 $ (130,088)
Reallocation of net income as a result of conversion of Class B to Class A common stock 16,453 0 16,555 0
Reallocation of net income to Class B common stock 0 0 0 0
Net income (loss) for diluted calculation $ 78,660 $ (50,282) $ 78,796 $ (130,088)
Denominator:        
Weighted-average shares outstanding, basic (in shares) 206,559 199,342 205,393 197,928
Conversion of Class B to Class A common stock (in shares) 54,632 0 54,633 0
Dilutive effect of share-based awards (in shares) 3,244 0 2,897 0
Weighted-average shares outstanding, diluted (in shares) 264,435 199,342 262,923 197,928
Net income (loss) per share, basic (in dollars per share) $ 0.30 $ (0.25) $ 0.30 $ (0.66)
Net income (loss) per share, diluted (in dollars per share) $ 0.30 $ (0.25) $ 0.30 $ (0.66)
Class B        
Numerator:        
Net income (loss) $ 16,453 $ (13,876) $ 16,555 $ (36,243)
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 (202) 0 (182) 0
Net income (loss) for diluted calculation $ 16,251 $ (13,876) $ 16,373 $ (36,243)
Denominator:        
Weighted-average shares outstanding, basic (in shares) 54,632 55,013 54,633 55,143
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
Weighted-average shares outstanding, diluted (in shares) 54,632 55,013 54,633 55,143
Net income (loss) per share, basic (in dollars per share) $ 0.30 $ (0.25) $ 0.30 $ (0.66)
Net income (loss) per share, diluted (in dollars per share) $ 0.30 $ (0.25) $ 0.30 $ (0.66)