Deductions & credits

No not like that.  You enter the W2 as normal on line 7.  Then you enter the amount in box 1 on line 21 with a - minus sign which will offset line 7.

I'll go look for a longer full answer I've posted before.