Looks like the high year tenure for an E5 is 14 years so you'd have to retire at least an E6.
https://en.m.wikipedia.org/wiki/High_Year_Tenure