"There are Federally-mandated limits on length of service based on rank. For Major, it is 24 years, and LtCol, 28."
Keep in mind that those limits are on commissioned time; you're enlisted time doesn't count toward it. Your "clock" was, essentially, reset the day you commissioned. You could, potentially, stay in much longer depending on how long you were enlisted.