Optimization of portfolio (withholding taxes)

This post is very informative Dr Pi Post

Some numbers might have changed though if tax treaties got updated.