Add to 4. Are you sure the capital gains are foreign? Usually they are not when you get a 1099-B or they are LTCG on a 1099-DIV.