INCOME TAXES - Unrecognized Tax Benefits (Details) - USD ($) $ in Millions |
12 Months Ended | ||
|---|---|---|---|
Jun. 30, 2024 |
Jun. 30, 2023 |
Jun. 30, 2022 |
|
| Reconciliation of the beginning and ending amount of gross unrecognized tax benefits [Roll Forward] | |||
| Beginning of the year balance of gross unrecognized tax benefits | $ 63 | $ 61 | $ 62 |
| Gross amounts of increases as a result of tax positions taken during a prior period | 4 | 9 | 12 |
| Gross amounts of decreases as a result of tax positions taken during a prior period | (4) | (5) | (6) |
| Gross amounts of increases as a result of tax positions taken during the current period | 5 | 4 | 7 |
| Amounts of decreases in unrecognized tax benefits relating to settlements with taxing authorities | (1) | (4) | (12) |
| Reductions to unrecognized tax benefits as a result of a lapse of the applicable statutes of limitations | (2) | (2) | (2) |
| End of year balance of gross unrecognized tax benefits | $ 65 | $ 63 | $ 61 |