(A) In general The term qualified economically distressed zone wages means amounts paid or incurred by the taxpayer for the taxable year which are— (i) in connection with the active conduct of a trade or business of the taxpayer within an economically distressed zone, and (ii) for wages of an employee for services provided, and the principal place of employment of whom is, in such economically distressed zone. (B) Limitation on amount of wages taken into account (i) In general The amount of wages which may be taken into account under subparagraph (A) with respect to any employee for any taxable year shall not exceed the contribution and benefit base determined under section 230 of the Social Security Act for the calendar year in which such taxable year begins. (ii) Treatment of part-time employees, etc If— (I) any employee is not employed by the taxpayer on a substantially full-time basis at all times during the taxable year, or (II) the principal place of employment of any employee is not within an economically distressed zone at all times during the taxable year, the limitation applicable under clause (i) with respect to such employee shall be the appropriate portion (as determined by the Secretary) of the limitation which would otherwise be in effect under clause (i). (C) Treatment of certain employees The term qualified economically distressed zone wages shall not include any wages paid to employees who are assigned by the employer to perform services for another person, unless the principal trade or business of the employer is to make employees available for temporary periods to other persons in return for compensation. (2) Allocable employee fringe benefit expenses (A) In general The term allocable employee fringe benefit expenses means the aggregate amount allowable as a deduction under this chapter to the taxpayer for the taxable year for the following amounts which are allocable to employment in an economically distressed zone: (i) Employer contributions under a stock bonus, pension, profit-sharing, or