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
Jan. 31, 2018
Jul. 31, 2017
Jan. 31, 2017
Jul. 31, 2016
Cash and Cash Equivalents Items [Line Items]        
Cash and cash equivalents, amortized cost $ 478 $ 529 $ 392 $ 638
Total cash and cash equivalents, investments, and funds held for customers, Amortized Cost 1,178 1,179    
Total cash and cash equivalents, investments, and funds held for customers, Fair Value 1,176 1,180    
Cash and cash equivalents        
Cash and Cash Equivalents Items [Line Items]        
Cash and cash equivalents, amortized cost 478 529    
Cash and cash equivalents, fair value 478 529    
Investments        
Cash and Cash Equivalents Items [Line Items]        
Investments and funds, amortized cost 250 247    
Investments and funds, fair value 248 248    
Funds held for customers        
Cash and Cash Equivalents Items [Line Items]        
Investments and funds, amortized cost 422 372    
Investments and funds, fair value 422 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