XML 67 R58.htm IDEA: XBRL DOCUMENT v3.20.2
CONVERTIBLE SENIOR NOTES - Components of Debt (Details) - Convertible Debt - USD ($)
$ in Thousands
Jul. 31, 2020
Jul. 31, 2019
Jul. 31, 2018
Jan. 31, 2018
Debt Instrument [Line Items]        
Convertible Debt Par Amount $ 575,000 $ 575,000   $ 575,000
Debt Instrument, Unamortized Discount (80,298) (109,956)    
Unamortized Debt Issuance Expense (4,480) (6,134)    
Convertible Debt, Noncurrent 490,222 458,910    
Debt Instrument, Convertible, Carrying Amount of Equity Component, Excluding Equity Issuance Costs $ 148,598 $ 148,598    
Debt Instrument, Interest Rate, Effective Percentage 6.62%      
Debt Instrument, Convertible, Transaction Costs Attributable to Equity Component $ 3,000   $ 3,000