XML 57 R38.htm IDEA: XBRL DOCUMENT v3.7.0.1
Stockholders' Equity (Details) - USD ($)
$ / shares in Units, shares in Millions, $ in Millions
1 Months Ended 3 Months Ended 9 Months Ended
May 31, 2017
Apr. 30, 2017
Apr. 30, 2016
Apr. 30, 2017
Apr. 30, 2016
Jul. 31, 2016
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]            
Common stock repurchased (in shares)       4.2 24.1  
Common stock repurchased, value       $ 478 $ 2,190  
Amounts due for share repurchases   $ 5   $ 5   $ 0
Common stock, dividends, per share, cash paid (in USD per share)       $ 1.02    
Payments of dividends       $ 265    
Cash dividends declared per common share (in USD per share)   $ 0.34 $ 0.30 $ 1.02 $ 0.90  
Allocated share-based compensation expense   $ 71 $ 65 $ 241 $ 197  
Stock Options            
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]            
Unrecognized compensation cost related to non-vested share based compensation expense   49   $ 49    
Expected weighted average vesting period to recognize compensation cost related to share based compensation expense, in years       1 year 10 months 24 days    
Restricted Stock Units (RSUs)            
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]            
Unrecognized compensation cost related to non-vested share based compensation expense   415   $ 415    
Expected weighted average vesting period to recognize compensation cost related to share based compensation expense, in years       2 years    
Discontinued Operations, Disposed of by Sale            
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]            
Allocated share-based compensation expense         3  
Software and Software Development Costs            
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]            
Capitalized computer software, gross       $ 6 $ 5  
Subsequent event            
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]            
Cash dividends declared per common share (in USD per share) $ 0.34          
New Program            
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]            
Stock repurchase program, remaining authorized repurchase amount   $ 1,900   $ 1,900