Fixed all occurrences of distance_in_time... function calls