Comment

And for OP, if there are no foreign capital gains, ignore the diagnostic.

@strongsilence the adjustment applies to long-term capital gains and qualified dividends because both are taxed at lower rates. I have read the instructions when I need to, but your snippet looks fine.