XML 102 R83.htm IDEA: XBRL DOCUMENT v3.8.0.1
Income taxes - unrecognized tax benefits (Details) - USD ($)
$ in Millions
12 Months Ended
Aug. 31, 2017
Aug. 31, 2016
Aug. 31, 2015
Reconciliation of Unrecognized Tax Benefits      
Balance at beginning of year $ 269 $ 261 $ 193
Gross increases related to business combination 0 0 84
Gross increases related to tax positions in a prior period 151 21 45
Gross decreases related to tax positions in a prior period (36) (47) (75)
Gross increases related to tax positions in the current period 33 68 63
Settlements with taxing authorities (2) (17) (45)
Currency (1) (11) 0
Lapse of statute of limitations (5) (6) (4)
Balance at end of year $ 409 $ 269 $ 261