XML 23 R13.htm IDEA: XBRL DOCUMENT v3.22.0.1
Net Income (Loss) Per Share
6 Months Ended
Jan. 31, 2022
Earnings Per Share [Abstract]  
Net Income (Loss) Per Share Net Income (Loss) Per Share
The Company calculates basic earnings per share by dividing the net income (loss) by the weighted average number of shares of common stock outstanding for the period. The diluted earnings per share is computed by giving effect to all potentially dilutive common stock equivalents outstanding for the period using the treasury stock method. For purposes of this calculation, options to purchase common stock, stock awards, and the Convertible Senior Notes are considered to be common stock equivalents.

The following table sets forth the computation of the Company’s basic and diluted net income (loss) per share (in thousands except share and per share amounts):

Three Months Ended January 31,Six Months Ended January 31,
2022202120222021
Numerator:
   Net income (loss)$(40,681)$(8,652)$(91,957)$(28,842)
Net income (loss) per share:
   Basic$(0.49)$(0.10)$(1.10)$(0.34)
   Diluted$(0.49)$(0.10)$(1.10)$(0.34)
Denominator:
Weighted average shares used in computing net income (loss) per share:
   Basic and diluted83,413,643 83,830,624 83,430,693 83,737,889 
The following weighted average shares of potential common stock were excluded from the computation of diluted net income (loss) per share for the periods presented because including them would have been anti-dilutive:

Three Months Ended January 31,Six Months Ended January 31,
2022202120222021
Stock options20,216 35,724 22,45848,598 
Stock awards3,268,003 3,020,497 3,126,378 2,899,553 
Convertible senior notes— 209,722 66,834 104,861 

Since the Company has the intent and ability to settle the principal amount of the Convertible Senior Notes in cash and any excess in shares of the Company’s common stock, the Company uses the treasury stock method for calculating any potential dilutive effect of the conversion spread on net income per share, if applicable. The conversion spread will have a dilutive impact on net income (loss) per share when the average market price of the Company’s common stock for a given period exceeds the conversion price of $113.75 per share for the Convertible Senior Notes. During the three months ended January 31, 2022, the average market price of the Company's common stock did not exceed the conversion price for the Convertible Senior Notes.