Credits and deductions

You can see the calculations that go into the foreign tax credit on the T2209 Federal Foreign Tax Credits form: https://www.canada.ca/en/revenue-agency/services/forms-publications/forms/t2209.html