Clerkships, according to my coworker who did 3 year fed clerkship, does not count towards FERS. You can also look on employee express, under misc click employee benefit statement. There’s a section that says “if I resigned today” and you can see if you’re eligible for deferred retirement (aka if your vested).