pub fn calculate_estimates(
msg_reader: MessageReader<'_, '_, AdjustTimetableEntry>,
entries: Populated<'_, '_, (&TimetableEntry, &mut TimetableEntryCache)>,
intervals: Populated<'_, '_, &Interval>,
parents: Populated<'_, '_, &ChildOf>,
schedules: Populated<'_, '_, &VehicleScheduleCache>,
graph: Res<'_, Graph>,
stack: Local<'_, Vec<(Entity, Option<Duration>, Option<Duration>)>>,
distances: Local<'_, Vec<Option<Distance>>>,
)