XML 54 R31.htm IDEA: XBRL DOCUMENT v3.10.0.1
Cash and Cash Equivalents, Investments, and Funds Held for Customers - Classification on Balance Sheets (Details) - USD ($)
$ in Millions
Oct. 31, 2018
Jul. 31, 2018
Oct. 31, 2017
Cash and Cash Equivalents Items [Line Items]      
Cash and cash equivalents $ 1,084 $ 1,464 $ 529
Cash and cash equivalents, fair value 1,084 1,464  
Available-for-sale debt securities, amortized cost 450 454  
Available-for-sale debt securities 448 452  
Total cash and cash equivalents, investments, and funds held for customers, Amortized Cost 1,785 2,098  
Total cash and cash equivalents, investments, and funds held for customers, Fair Value 1,783 2,096  
Investments      
Cash and Cash Equivalents Items [Line Items]      
Available-for-sale debt securities, amortized cost 250 253  
Available-for-sale debt securities 248 252  
Funds held for customers      
Cash and Cash Equivalents Items [Line Items]      
Available-for-sale debt securities, amortized cost 438 368  
Available-for-sale debt securities 438 367  
Long-term investments      
Cash and Cash Equivalents Items [Line Items]      
Available-for-sale debt securities, amortized cost 13 13  
Available-for-sale debt securities $ 13 $ 13