Capitol Loss Carryover Worsheet Error

I'm doing my federal taxes 2023 desktop version. I  did the review and 2 errors were found. The software says to check this entry, Capitol Loss Carryover worksheet  TY21 Schedule D AMT, I need to enter a number in line 15. It looks like it wants the AMT from year 2021 line 7 and line 15.

1-I assume I get these numbers from the 2021 tax return NOT the 2022 tax return?

2-2021 Capture.JPGIn addition, do I insert negative sign in front of the number or just the number?

 

Thanks so much, Bill