; and (10) in section 5382— (A) in subsection (a), by striking 5306(e) or ; and (B) by adding at the end the following new subsection: (d) For the purposes of determining the highest rate of basic pay payable for a position under this section, the rate of basic pay for such position shall exclude the percentage of the pay of such position that is equal to the percentage by which the pay of such position would increase if, without regard to any limitation on the maximum rate of basic pay for such position, such position was eligible for a locality-based comparability payment under section 5304 in the same manner as a position under the General Schedule that is in the same locality and eligible for such a payment. . (b) Military personnel Section 203(a) of title 37, United States Code, is amended by adding at the end the following new paragraph: (3) For the purposes of determining the highest rate of basic pay payable for an officer or enlisted member under paragraph (2), the rate of basic pay for such officer or enlisted member shall exclude— (A) any annual pay adjustment under section 1009 or similar adjustment; and (B) any locality-based comparability payment under section 5304 of title 5 or similar payment. . (c) Other pay authorities (1) In general Except as otherwise provided in paragraph (2) and notwithstanding any other provision of law, when determining if the pay of the employee meets a Federal pay limit, the following shall be disregarded: (A) Any portion of the basic pay of the employee that is attributable to an annual pay adjustment under section 5303 of title 5, United States Code, or a similar adjustment. (B) Any portion of the basic pay of the employee that is attributable to a locality-based comparability payment under section 5304 of title 5, United States Code, or a similar payment. (2) Exceptions Paragraph (1) does not apply with respect to a Federal pay limit to the extent otherwise provided in— (A) this Act; (B) the amendments made by this Act