Stock-Based Compensation - Schedule of Stock Option Vesting (Details) - USD ($) $ in Millions |
12 Months Ended | ||
|---|---|---|---|
May 31, 2021 |
May 31, 2020 |
May 31, 2019 |
|
| Share Based Compensation Arrangement By Share Based Payment Award Options Additional Disclosures Abstract | |||
| Vested during the year | 2,492,039 | 2,073,310 | 2,249,301 |
| Fair value | $ 115 | $ 99 | $ 115 |