Once you receive your letter of release (A.K.A Physical Disability Information Report) you have exactly 90 days to get out (clearing, leave, etc.) Now you have two routes of doing this..
A) Apply your leave to line up with that last day.. meaning, officially starting your terminal leave so...