(2) If contributions are made to a plan included in
section 404(a) (1), (2), or (3) on behalf of employees, some of whom are self-employed individuals, the amount deductible with respect to contributions on behalf of the common-law employees covered under the plan shall be determined as if such employees were the only employees for whom contributions and benefits are provided under the plan. Accordingly, for purposes of such determination, the percentage of compensation limitations of
section 404(a) (1), (3), and (7) are applicable only with respect to the compensation otherwise paid or accrued during the taxable year by the employer to the common-law employees. Similarly, the costs referred to in
section 404(a)(1) (B) and (C) shall be the costs of funding the benefits of the common-law employees. Also, the provisions of
section 404(a)(1)(D), (3), and (7), relating to certain carryover deductions, shall be applicable only to amounts contributed, or to the amounts deductible, on behalf of such employees.