XML 93 R78.htm IDEA: XBRL DOCUMENT v3.10.0.1
INCOME TAXES - Schedule of Effective Income Tax Rate Reconciliation (Details) - USD ($)
$ in Thousands
3 Months Ended 12 Months Ended
Jul. 31, 2018
Apr. 30, 2018
Jan. 31, 2018
Oct. 31, 2017
Jul. 31, 2017
Apr. 30, 2017
Jan. 31, 2017
Oct. 31, 2016
Jul. 31, 2018
Jul. 31, 2017
Jul. 31, 2016
Income Tax Disclosure [Abstract]                      
U.S. federal income tax at statutory rate                 $ (75,779) $ (127,427) $ (36,011)
U.S. tax reform impact                 93,352 0 0
Change in valuation allowance                 25,274 86,941 19,268
Effect of foreign operations                 26,117 16,891 15,144
Stock-based compensation                 (73,631) 6,701 3,655
Warrant revaluation                 0 7,185 (681)
Non-deductible expenses                 2,115 1,693 802
State income taxes                 (290) 206 140
Transfer pricing adjustments                 4,584 11,822 0
Intangible asset migration                 4,461 0 0
Other                 1,244 840 0
Total $ 4,118 $ (843) $ 1,913 $ 2,259 $ 1,555 $ 2,639 $ 547 $ 111 $ 7,447 $ 4,852 $ 2,317