implement ride_ratings_calculate_elevator and related functions