Hi TC55,
The online Self Assessment tax return, is able to work out the relief available for each type of overseas income, as permitted by the double taxation agreement between the UK and the relevant country.
If you are completing a paper tax return, you can ask HMRC to calculate this for you or calculate it yourself, using helpsheet HS263.
Relief for foreign tax paid (Self Assessment helpsheet HS263)
Thank you.