Stockholders' Equity (Recognized Stock-Based Compensation) (Details) - USD ($) $ in Millions |
3 Months Ended | 6 Months Ended | ||
|---|---|---|---|---|
Feb. 28, 2022 |
Feb. 28, 2021 |
Feb. 28, 2022 |
Feb. 28, 2021 |
|
| Share-based Compensation Arrangement by Share-based Payment Award [Line Items] | ||||
| Stock-based compensation expense | $ 16 | $ 23 | $ 51 | $ 57 |
| Restricted stock units | ||||
| Share-based Compensation Arrangement by Share-based Payment Award [Line Items] | ||||
| Stock-based compensation expense | 12 | 20 | 44 | 52 |
| Employee stock purchase plan | ||||
| Share-based Compensation Arrangement by Share-based Payment Award [Line Items] | ||||
| Stock-based compensation expense | $ 4 | $ 3 | $ 7 | $ 5 |