Deductions & credits

Sorry I never studied the worksheet before for that section.  Especially if you have a high income.

IRS worksheet for line 30 in 1040 instructions page 59

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