Calculating capital gains carryover loss

In following the prompts in Turbo Tax to calculate my  capital gains carryover, I need to enter my income from the 1040 from 2018.  However, I amended the return several times.  Do I use the income from the latest one even though I filed it in 2020?