Quick search by citation:

33 U.S. Code § 3046 - Retired grade and retired pay

Each officer retired pursuant to law shall be placed on the retired list with the highest grade satisfactorily held by that officer while on active duty including active duty pursuant to recall, under permanent or temporary appointment, and shall receive retired pay based on such highest grade, if—
the officer’s performance of duty in such highest grade has been satisfactory, as determined by the Secretary of the department or departments under whose jurisdiction the officer served; and
unless retired for disability, the officer’s length of service in such highest grade is no less than that required by the Secretary of officers retiring under permanent appointment in that grade.
Editorial Notes
Prior Provisions

Provisions similar to those in this section were contained in sections 853p and 857–2 of this title prior to repeal by Pub. L. 107–372.