Error with the program?

I have a large loss for 2021; however the program is telling me that I have made gains for the year