The following table summarizes the total gain (loss) recognized in the condensed consolidated statement of income from our foreign exchange derivative contracts by location for the periods indicated (in millions): | | | | | | | | | | | | | | | | | | | | | | | | | Three Months Ended June 30, | | Six Months Ended June 30, | | | 2024 | | 2023 | | 2024 | | 2023 | | Foreign exchange contracts designated as cash flow hedges recognized in net revenues | $ | (10) | | | $ | 14 | | | $ | (20) | | | $ | 43 | | | Foreign exchange contracts designated as cash flow hedges recognized in cost of net revenues | — | | | — | | | — | | | (1) | | | | | | | | | | Foreign exchange contracts not designated as hedging instruments recognized in interest income and other, net | 12 | | | 10 | | | 20 | | | 6 | | | Total gain (loss) recognized from foreign exchange derivative contracts in the condensed consolidated statement of income | $ | 2 | | | $ | 24 | | | $ | — | | | $ | 48 | |
The following table summarizes the total gain (loss) recognized in the condensed consolidated statement of income from our interest rate derivative contracts by location for the periods indicated (in millions): | | | | | | | | | | | | | | | | | | | | | | | | | Three Months Ended June 30, | | Six Months Ended June 30, | | | 2024 | | 2023 | | 2024 | | 2023 | Gain (loss) from interest rate contracts designated as cash flow hedges recognized in interest expense | $ | 2 | | | $ | 3 | | | $ | 4 | | | $ | 7 | | Gain (loss) from interest rate contracts designated as fair value hedges recognized in interest expense | 1 | | | — | | | 2 | | | — | | | | | | | | | | | Total gain (loss) recognized from interest rate derivative contracts in the condensed consolidated statement of income | $ | 3 | | | $ | 3 | | | $ | 6 | | | $ | 7 | |
The following table summarizes the total gain (loss) recognized in the condensed consolidated statement of income due to changes in the fair value of the warrant for the periods indicated (in millions): | | | | | | | | | | | | | | | | | | | | | | | | | Three Months Ended June 30, | | Six Months Ended June 30, | | | 2024 | | 2023 | | 2024 | | 2023 | | Gain (loss) attributable to changes in the fair value of warrant recognized in gain (loss) on equity investments and warrant, net | $ | (174) | | | $ | 31 | | | $ | (25) | | | $ | 69 | |
|