XML 49 R30.htm IDEA: XBRL DOCUMENT v3.8.0.1
Cash and Cash Equivalents, Investments, and Funds Held for Customers - Type of issue (Details) - USD ($)
$ in Millions
3 Months Ended 9 Months Ended 12 Months Ended
Apr. 30, 2018
Apr. 30, 2017
Apr. 30, 2018
Apr. 30, 2017
Jul. 31, 2017
Jul. 31, 2016
Cash and Cash Equivalents Items [Line Items]            
Cash and cash equivalents, amortized cost $ 1,614 $ 1,350 $ 1,614 $ 1,350 $ 529 $ 638
Available-for-sale securities:            
Total cash and cash equivalents, investments, and funds held for customers, Amortized Cost 2,386   2,386   1,179  
Total cash and cash equivalents, investments, and funds held for customers, Fair Value 2,383   2,383   1,180  
Gross realized gains (losses) on available for sale debt securities 0 $ 0 0 $ 0    
Unrealized gain (loss) on available for sale debt securities     0   0  
Total cash and cash equivalents            
Cash and Cash Equivalents Items [Line Items]            
Cash and cash equivalents, amortized cost 1,833   1,833   701  
Cash and cash equivalents, fair value 1,833   1,833   701  
Time deposits            
Cash and Cash Equivalents Items [Line Items]            
Time deposits, amortized cost 75   75   0  
Time deposit, fair value 75   75   0  
Municipal bonds            
Available-for-sale securities:            
Investments and funds, amortized cost 46   46   63  
Investments and funds, fair value 46   46   63  
Corporate notes            
Available-for-sale securities:            
Investments and funds, amortized cost 397   397   381  
Investments and funds, fair value 394   394   382  
U.S. agency securities            
Available-for-sale securities:            
Investments and funds, amortized cost 7   7   3  
Investments and funds, fair value 7   7   3  
Municipal auction rate securities            
Available-for-sale securities:            
Investments and funds, amortized cost 15   15   15  
Investments and funds, fair value 15   15   15  
Total available-for-sale debt securities            
Available-for-sale securities:            
Investments and funds, amortized cost 465   465   462  
Investments and funds, fair value 462   462   463  
Other long-term investments            
Available-for-sale securities:            
Other long-term investments, amortized cost 13   13   16  
Investments and funds, fair value $ 13   $ 13   $ 16