Deductions & credits

For my return, the key confusion had to do with capital gains and losses.  The actual IRS instructions seem to call for gains only without subtracting losses.   (This can be read from the TT instructions, but it's obscure.)  Once I omitted capital losses from the gross income from all sources number, things added up.  So, I believe the TT computation is correct.