Deductions & credits

Okay!  The numbers do work out, after an adjustment to income from Schedule 1.  Thank you for solving the mystery!