Easy exercise: d = rt

Could use a rewrite, though. The code is definitely not the prettiest