Here’s how to get it right when you consider retirement income exclusions.