Derivative Financial Instruments and Hedging Activities (Additional Information) (Details) - USD ($) |
Feb. 28, 2022 |
Aug. 31, 2021 |
|---|---|---|
| 3.000% Senior Notes | Senior Notes | ||
| Derivative [Line Items] | ||
| Senior notes, stated interest rate (as a percent) | 3.00% | |
| Interest rate swaps | Cash flow hedging | 3.000% Senior Notes | ||
| Derivative [Line Items] | ||
| Aggregate notional amount | $ 200,000,000 | |
| Forward contracts | Cash flow hedging | ||
| Derivative [Line Items] | ||
| Aggregate notional amount | 3,000,000,000 | $ 3,600,000,000 |
| Forward contracts | Forward foreign exchange contracts | ||
| Derivative [Line Items] | ||
| Aggregate notional amount | $ 1,200,000,000 | $ 1,500,000,000 |