Add the getTimeToReach() method.
Complete tests.