def METHOD_NAME(gains: list[float], idx: int, delta: float = 3.0) -> int:
    """find maximum from index postion of gains in a attn dB gain span
    Args:
        gains (list[float]): gain values
        idx (int): start position to search from
        delta (float, optional): max gain delta from start. Defaults to 3.0.
    Returns:
        int: position of highest gain from start in range (-1 if no data)
    """
    peak_db = gains[idx]
    rng = take_from_idx(gains, idx, lambda i: abs(peak_db - i[1]) < delta)
    return max(rng, key=lambda i: gains[i]) if rng else -1