XML 48 R29.htm IDEA: XBRL DOCUMENT v3.8.0.1
Cash and Cash Equivalents, Investments, and Funds Held for Customers - Classification on Balance Sheets (Details) - USD ($)
$ in Millions
Apr. 30, 2018
Jul. 31, 2017
Apr. 30, 2017
Jul. 31, 2016
Cash and Cash Equivalents Items [Line Items]        
Cash and cash equivalents, amortized cost $ 1,614 $ 529 $ 1,350 $ 638
Total cash and cash equivalents, investments, and funds held for customers, Amortized Cost 2,386 1,179    
Total cash and cash equivalents, investments, and funds held for customers, Fair Value 2,383 1,180    
Cash and cash equivalents        
Cash and Cash Equivalents Items [Line Items]        
Cash and cash equivalents, amortized cost 1,614 529    
Cash and cash equivalents, fair value 1,614 529    
Investments        
Cash and Cash Equivalents Items [Line Items]        
Investments and funds, amortized cost 325 247    
Investments and funds, fair value 322 248    
Funds held for customers        
Cash and Cash Equivalents Items [Line Items]        
Investments and funds, amortized cost 419 372    
Investments and funds, fair value 419 372    
Long-term investments        
Cash and Cash Equivalents Items [Line Items]        
Investments and funds, amortized cost 28 31    
Investments and funds, fair value $ 28 $ 31