Foreign Tax credit

How does when get credit for foreign taxes paid