How to treat foreign tax credits