How to calculate foreign earned income

Do I add up my foreign income before or after foreign taxes?