Retirement tax questions

If you have a basis, yes the calculation is after your distributions in that year are added back in.

these are two separate line items and then they are totaled.