Limitation
The credit allowable under subsection (a) for any taxable year shall not exceed the excess (if any) of—
(1)#
the regular tax liability of the taxpayer for such taxable year reduced by the sum of the credits allowable under subparts A, B, D, E, and F of this part, over
(2)#
the tentative minimum tax for the taxable year.