(1) In general The term “highly compensated employee” means any employee who—
(A) was a 5-percent owner at any time during the year or the preceding year, or
(B) for the preceding year—
(i) had compensation from the employer in excess of $80,000, and
(ii) if the employer elects the application of this clause for such preceding year, was in the top-paid group of employees for such preceding year.
The Secretary shall adjust the $80,000 amount under subparagraph (B) at the same time and in the same manner as under
section 415(d), except that the base period shall be the calendar quarter ending September 30, 1996.
(5) Excluded employees For purposes of subsection (r) and for purposes of determining the number of employees in the top-paid group, the following employees shall be excluded—
(A) employees who have not completed 6 months of service,
(B) employees who normally work less than 171/2 hours per week,
(C) employees who normally work during not more than 6 months during any year,
(D) employees who have not attained age 21, and
(E) except to the extent provided in regulations, employees who are included in a unit of employees covered by an agreement which the Secretary of Labor finds to be a collective bargaining agreement between employee representatives and the employer.
Except as provided by the Secretary, the employer may elect to apply subparagraph (A), (B), (C), or (D) by substituting a shorter period of service, smaller number of hours or months, or lower age for the period of service, number of hours or months, or age (as the case may be) than that specified in such subparagraph.
(6) Former employees A former employee shall be treated as a highly compensated employee if—
(A) such employee was a highly compensated employee when such employee separated from service, or
(B) such employee was a highly compensated employee at any time after attaining age 55.
(7) Coordination with other provisions Subsections (b), (c), (m), (n), and (o) shall be applied before the application of this subsection.