def calculate_avg_delay_wait(avg_delays):
    """
    Calculate average delay or waiting value.
    """
    avg_delays_dict = {}
    for lambda_rate, avg_delay_list in avg_delays.items():
        avg_value = sum(avg_delay_list) / len(avg_delay_list)
        avg_delays_dict[lambda_rate] = avg_value
    return avg_delays_dict