Deductions & credits

So federal standard deduction is $12,400 so I’ll basically pay taxes on the $17,600 for federal tax. Then, state standard deduction are separated so NYS standard deduction is $8,000. So for New York State My taxable income is $22,000 is that correct?

Lastly, the capital loss deduction  applies to both the federal and state right?