Fair Value Measurements - Carrying and Fair Value of Long-Term Debt (Details) - USD ($) $ in Millions |
Jun. 30, 2024 |
Jun. 30, 2023 |
Oct. 31, 2022 |
---|---|---|---|
Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items] | |||
Total long-term debt with fixed interest rates (excluding commercial paper and finance leases) | $ 5,141 | $ 4,123 | |
Interest rate swaps | |||
Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items] | |||
Derivative, notional amount | 1,200 | $ 1,250 | |
Level 2 | |||
Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items] | |||
Total long-term debt with fixed interest rates (excluding commercial paper and finance leases) | $ 4,973 | $ 3,844 |