No deduction shall be allowed for that portion of the wages or salaries paid or incurred for the taxable year which is equal to the sum of the credits determined for the taxable year under sections
45A
(a),
45P
(a),
51
(a), and 1396(a), 1400P(b), and 1400R. In the case of a corporation which is a member of a controlled group of corporations (within the meaning of section
52
(a)) or a trade or business which is treated as being under common control with other trades or businesses (within the meaning of section
52
(b)), this subsection shall be applied under rules prescribed by the Secretary similar to the rules applicable under subsections (a) and (b) of section
52.