XML 53 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
Jan. 31, 2019
Jul. 31, 2018
Jan. 31, 2018
Cash and Cash Equivalents Items [Line Items]      
Cash and cash equivalents $ 1,075 $ 1,464 $ 478
Cash and cash equivalents, fair value 1,075 1,464  
Available-for-sale debt securities, amortized cost 459 454  
Available-for-sale debt securities 458 452  
Total cash and cash equivalents, investments, and funds held for customers, Amortized Cost 1,781 2,098  
Total cash and cash equivalents, investments, and funds held for customers, Fair Value 1,780 2,096  
Investments      
Cash and Cash Equivalents Items [Line Items]      
Available-for-sale debt securities, amortized cost 259 253  
Available-for-sale debt securities 258 252  
Funds held for customers      
Cash and Cash Equivalents Items [Line Items]      
Available-for-sale debt securities, amortized cost 434 368  
Available-for-sale debt securities 434 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