foreign income tax credit calculation