(a) Major Generals and Rear Admirals Serving in Grade.—Except as provided in subsection (b) or (c) and under section 637(b) or 637a of this title, each officer of the Regular Army, Regular Air Force, Regular Marine Corps, or Regular Space Force who holds the regular grade of major general, and each officer of the Regular Navy who holds the regular grade of rear admiral, shall, if not earlier retired, be retired on the first day of the first month beginning after the date of the fifth anniversary of his appointment to that grade or on the first day of the month after the month in which he completes 35 years of active commissioned service, whichever is later.

(b) Lieutenant Generals and Vice Admirals.—In the administration of subsection (a) in the case of an officer who is serving in the grade of lieutenant general or vice admiral, the number of years of active commissioned service applicable to the officer is 38 years.

(c) Generals and Admirals.—In the administration of subsection (a) in the case of an officer who is serving in the grade of general or admiral, the number of years of active commissioned service applicable to the officer is 40 years.