Deductions & credits

See IRS 1040 Instructions for Schedule 1 line 17 on page 89 & 90.  There is a worksheet on page 90.

https://www.irs.gov/pub/irs-pdf/i1040gi.pdf