XML 66 R52.htm IDEA: XBRL DOCUMENT v3.19.1
CONVERTIBLE SENIOR NOTES - Interest Expense (Details) - Convertible Debt - USD ($)
$ in Thousands
3 Months Ended 9 Months Ended
Apr. 30, 2019
Apr. 30, 2018
Apr. 30, 2019
Apr. 30, 2018
Debt Instrument [Line Items]        
Interest expense related to amortization of debt discount $ 6,997 $ 6,550 $ 20,650 $ 7,250
Interest expense related to amortization of debt issuance costs 390 366 1,152 404
Total interest expense $ 7,387 $ 6,916 $ 21,802 $ 7,654