The increase in the tax for each taxable year referred to in paragraph (1) shall be computed in accordance with regulations prescribed by the Secretary. Such regulations shall give effect to previous recoveries of any kind (including recoveries described in section
111, relating to recovery of tax benefit items) with respect to any prior taxable year, but shall otherwise treat the tax previously determined for any taxable year in accordance with the principles set forth in section
1314
(a) (relating to correction of errors). Subject to the provisions of paragraph (3), all credits allowable against the tax for any taxable year, and all carryovers and carrybacks affected by so decreasing the allowable deductions, shall be taken into account in computing the increase in the tax.