Retirement tax questions

Thanks.  I was able to guess the earnings using my statement balances.  I "iterated" the calculation a second and third time, and the eligibility amount stabilized.  So I guess that's how it's done.