def METHOD_NAME(self, ids: list[int], distances: list[float], time_weight: float = 1.0) -> list[float]:
    if len(self.ids) <= 1:
        return distances.copy()
    return [distance * (1 - _id / (len(self.ids) - 1) * time_weight) for _id, distance in zip(ids, distances)]