Deductions & credits

1h-1l=1k.   If the amount in 1h is 20K or more, it requires adjustment.   Right click on 1l and select data source for the algorithm.  If you are using the Qualified dividends and Capital Gains worksheet, the algorithm is correct.  If you are using the Schedule D worksheet, the algorithm has errors.  If appears it needs updating due to changes in the Schedule D worksheet.