def find_percent_val(minval, maxval, percent):
    """Find the value that is the desired percent between a min and max number.
    minval -- The low number of the range.
    maxval -- The high number of the range.
    percent -- A number between 0.0 and 100.0."""
    if not 0.0 < percent < 100.0:
        print("\n" + "    ERROR: Percent must be between 0 and 100.")
        print("    Defaulting to 50 percent." + "\n")
        percent = 50.0

    return minval + ((maxval - minval) * percent / 100.0)