XML 124 R97.htm IDEA: XBRL DOCUMENT v3.23.3
Retirement benefits - accumulated other comprehensive income (Details) - Pension Plan - USD ($)
$ in Millions
Aug. 31, 2023
Aug. 31, 2022
Aug. 31, 2021
Defined Benefit Plan Disclosure [Line Items]      
Net actuarial loss (gain) $ 730 $ (251) $ (506)
Prior service cost (1) (1) (1)
Total pre-tax comprehensive loss (income) $ 729 $ (252) $ (507)