v3.25.2
Derivative Financial Instruments and Hedging Activities - Schedule of Net (Losses) Gains from Forward Contracts Recorded in Consolidated Statements of Operations (Details) - USD ($)
$ in Millions
3 Months Ended 9 Months Ended
May 31, 2025
May 31, 2024
May 31, 2025
May 31, 2024
Derivative instruments designated as cash flow hedges:        
Loss to be reclassified in next 12 months     $ 16  
Designated as hedging instruments        
Derivative instruments designated as cash flow hedges:        
Gains (losses) recognized in OCI $ 15 $ 0 4 $ (4)
Designated as hedging instruments | Net investment hedges        
Derivative instruments designated as net investment hedges:        
(Losses) gains recognized in OCI (36) 5 (8) 5
Designated as hedging instruments | Gain from the divestiture of businesses | Net investment hedges        
Derivative instruments designated as net investment hedges:        
Gains reclassified from AOCI into earnings 0 0 0 (4)
Designated as hedging instruments | Foreign exchange contracts | Cost of revenue        
Derivative instruments designated as cash flow hedges:        
Gains (losses) reclassified from AOCI into earnings 0 0 20 15
Designated as hedging instruments | Interest rate contracts | Interest expense, net        
Derivative instruments designated as cash flow hedges:        
Gains (losses) reclassified from AOCI into earnings 0 (1) (2) (2)
Not designated as hedging instruments | Foreign exchange contracts | Cost of revenue        
Derivative instruments not designated as hedging instruments:        
(Losses) gains recognized in earnings from forward foreign exchange contracts (10) 0 (36) 7
Gains (losses) recognized in earnings from changes in foreign currency $ 1 $ (1) $ 4 $ (36)