Retirement tax questions

this is not how it works. On J1 (nonstudent) the rule is the 2 out of 6 years lookback rule, not the 5 years lifetime exclusion. Lucky for you, in this case the correct rule gives the same result.