XML 65 R53.htm IDEA: XBRL DOCUMENT v3.22.1
Convertible Senior Notes - Interest Expense Recognized (Details) - USD ($)
$ in Thousands
3 Months Ended 9 Months Ended
Apr. 30, 2022
Apr. 30, 2021
Apr. 30, 2022
Apr. 30, 2021
Debt Instrument [Line Items]        
Non-cash interest expense     $ 14,408 $ 11,331
Convertible Debt | 2023 Convertible Senior Notes        
Debt Instrument [Line Items]        
Interest expense related to amortization of debt discount $ 0 $ 7,985 0 23,564
Interest expense related to amortization of debt issuance costs 148 446 696 1,315
Total interest expense 148 8,431 696 24,879
Convertible Debt | 2026 Convertible Senior Notes        
Debt Instrument [Line Items]        
Interest expense related to amortization of debt discount 8,619 8,034 25,408 19,115
Interest expense related to amortization of debt issuance costs 985 917 2,904 2,184
Non-cash interest expense 4,833 4,716 14,408 11,331
Total interest expense 14,437 $ 13,667 42,720 $ 32,630
Convertible Debt | 2027 Convertible Senior Notes        
Debt Instrument [Line Items]        
Contractual interest expense 359   870  
Interest expense related to amortization of debt issuance costs 381   921  
Total interest expense $ 740   $ 1,791