in applying paragraph (1) to such credits—
(I)#
the tentative minimum tax shall be treated as being zero, and
(II)#
the limitation under paragraph (1) (as modified by subclause (I)) shall be reduced by the credit allowed under subsection (a) for the taxable year (other than the specified credits).