Deductions & credits

The capital gain were from when I was an Arizona resident, while the capital loss is from when I was an Oregon resident. I don't need report Arizona gains in Oregon. I just have to report the capital losses in Oregon (where I had no capital gains in or while I was a resident of Oregon), so checking what's the max loss I can deduct.