async fn calculate_with_percentile(
    data: &AppData,
    tp: &TrafficPattern
) -> Result<Option<Vec<Level>>, ServiceError>