Fed employees retirement information

I have 21 years federal law enforcement experience. 7 uncovered and 14 covered6(c). I am 50 years old and had to separate for medical reasons , almost died. When can I file for retirement? Any recommendations would be greatly appreciated!