Utilizing Mike's mathematical prowess, made the "distance to start slowing down" code actually accurate.
(I should probably rewrite it completely before I forget how it works so it makes more sense to someone reading the code.)