XML 100 R81.htm IDEA: XBRL DOCUMENT v3.10.0.1
Stock compensation plans (Details) - USD ($)
$ in Millions
12 Months Ended
Aug. 31, 2018
Aug. 31, 2017
Aug. 31, 2016
Disclosure of Compensation Related Costs, Share-based Payments [Abstract]      
Expected performance goal achievement rate 100.00%    
Total stock-based compensation expense $ 130 $ 91 $ 115
Stock-based compensation, recognized tax benefit, 43 $ 78 $ 21
Unrecognized compensation cost related to non-vested awards $ 147    
Compensation cost not yet recognized period for recognition 3 years