CONDENSED CONSOLIDATED STATEMENTS OF COMPREHENSIVE INCOME (LOSS) - USD ($) $ in Millions |
3 Months Ended | 9 Months Ended | ||
|---|---|---|---|---|
Apr. 30, 2026 |
Apr. 30, 2025 |
Apr. 30, 2026 |
Apr. 30, 2025 |
|
| Statement of Comprehensive Income [Abstract] | ||||
| Net income (loss) | $ (177) | $ 262 | $ 589 | $ 880 |
| Other comprehensive income, net of tax: | ||||
| Change in unrealized gains (losses) on investments | (31) | 32 | (32) | 24 |
| Cash flow hedges: | ||||
| Change in unrealized gains (losses) | 3 | 30 | 26 | 21 |
| Net realized (gains) losses reclassified into earnings | (19) | 0 | (43) | 5 |
| Net change on cash flow hedges | (16) | 30 | (17) | 26 |
| Change in fair value of convertible senior notes attributable to instrument-specific credit risk | (12) | 0 | (12) | 0 |
| Other comprehensive income (loss) | (59) | 62 | (61) | 50 |
| Comprehensive income (loss) | $ (236) | $ 324 | $ 528 | $ 930 |
| X | ||||||||||
- Definition Amount after tax of increase (decrease) in equity from transactions and other events and circumstances from net income and other comprehensive income, attributable to parent entity. Excludes changes in equity resulting from investments by owners and distributions to owners. Reference 1: http://www.xbrl.org/2003/role/disclosureRef
|
| X | ||||||||||
- Definition The portion of profit or loss for the period, net of income taxes, which is attributable to the parent. Reference 1: http://www.xbrl.org/2003/role/exampleRef
|
| X | ||||||||||
- References No definition available.
|
| X | ||||||||||
- Definition Amount, after tax and adjustment, of unrealized gain (loss) on investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale) and unrealized gain (loss) on investment in debt security measured at amortized cost (held-to-maturity) from transfer to available-for-sale. Reference 1: http://www.xbrl.org/2003/role/disclosureRef
|
| X | ||||||||||
- Definition Amount, after tax and reclassification, of gain (loss) from derivative instrument designated and qualifying as cash flow hedge included in assessment of hedge effectiveness, attributable to parent. Reference 1: http://www.xbrl.org/2003/role/disclosureRef
|
| X | ||||||||||
- Definition Amount, after tax and before reclassification, of gain (loss) from derivative instrument designated and qualifying as cash flow hedge included in assessment of hedge effectiveness. Reference 1: http://www.xbrl.org/2003/role/disclosureRef
|
| X | ||||||||||
- Definition Amount, after tax, of reclassification of gain (loss) from accumulated other comprehensive income (AOCI) for derivative instrument designated and qualifying as cash flow hedge included in assessment of hedge effectiveness. Reference 1: http://www.xbrl.org/2003/role/disclosureRef
|
| X | ||||||||||
- Definition Amount, after tax and reclassification adjustment, of gain (loss) from increase (decrease) in instrument-specific credit risk of financial liability measured under fair value option, attributable to parent. Reference 1: http://www.xbrl.org/2003/role/disclosureRef
|
| X | ||||||||||
- Definition Amount after tax of other comprehensive income (loss) attributable to parent entity. Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef
|
| X | ||||||||||
- References No definition available.
|
| X | ||||||||||
- References No definition available.
|