Splitting foreign income and capital gains from financial years different from calendar years

Hi,

For passive foreign income and long term capital gains in a country where the financial year (April-March) is different from the calendar year (Jan-Dec), how will the foreign income and tax credits for foreign taxes already filed be split for US taxes for a resident alien?

For example, if 2024 US tax returns are filed, will Jan-March of 2023-2024 and April-December of 2024-2025 be used from the past two foreign tax returns?