Working or Investing Abroad? How to Avoid Paying Taxes Twice