Deductions & credits

Thank you! And can those five years be spread across more than five tax periods? For example if the treaty covered 9 months of employment during the 2022 tax period and 3 months of employment during the 2023 tax period, together can those 12 months count towards only one year of the five-year limit, or would they count as two years total because they were from two separate tax periods?