v3.24.3
Net Income (Loss) Per Share
9 Months Ended
Oct. 31, 2024
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 the Company’s common stock shares outstanding during the respective period. Diluted net income (loss) per share is computed by adjusting basic net income per share for the potential dilutive impacts of outstanding stock options, RSUs, PSUs, and shares issuable pursuant to our ESPP. We determine the dilutive effect of outstanding common stock awards using the treasury stock method.
The following table presents calculations for basic and diluted net income (loss) per share (in thousands, except per share data):
Three Months Ended October 31,Nine Months Ended October 31,
2024202320242023
Numerator:
Net income (loss); basic and diluted
$1,324 $(32,428)$324 $(95,655)
Denominator:
Weighted-average shares outstanding; basic
139,007 135,189 138,287 133,868 
Effect of dilutive securities:
Shares subject to outstanding common stock awards
3,661 — 3,019 — 
Weighted-average shares outstanding; diluted
142,668 135,189 141,306 133,868 
Net income (loss) per share:
Basic
$0.01 $(0.24)$0.00 $(0.71)
Diluted
$0.01 $(0.24)$0.00 $(0.71)

The following outstanding shares of common stock awards were excluded from the computation of diluted net income (loss) per share for the periods presented because the impact of including them would have been anti-dilutive (in thousands):
Three Months Ended October 31,Nine Months Ended October 31,
2024202320242023
Shares subject to outstanding common stock awards1,129 11,873 1,753 11,873 
Shares issuable pursuant to the 2018 Employee Stock Purchase Plan— 313 — 313 
Total potentially dilutive shares1,129 12,186 1,753 12,186