def _calculate_humid_adjustment(temp: float, rh: float) -> float:
    """
    Calculates and adjustment to the head index applicable when humidity is greater than
    85% and temperature is between 80 and 87
    """
    return ((rh - 85) / 10.0) * ((87 - temp) / 5.0)