I understand what to do but do i take the loss in 2023 or do i have to amend the 2022 tax return