Roger Federer is not planning to retire any time soon, but he knows he wants to go out on his own terms.