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