def calculate_waiting_time(self, queue: list[Process]) -> list[int]:
        waiting_times = []
        for i in range(len(queue)):
            waiting_times.append(queue[i].waiting_time)
        return waiting_times