For example, the law effective January 1, 2017 does not consider capital gains on the sale of US stock through a US broker as foreign source income