def min_max_norm(x, minimum, maximum) -> float:
    """Rescales a variable to a range between 0 and 1 using the rescaling method (also known as min-max normalization).

    Args:
        x (number): Variable that will be rescaled.
        minimum (number): Minimum value from the dataset.
        maximum (number): Maximum value from the dataset.

    Returns:
        float: Normalized variable.
    """
    if x == maximum:
        return 1
    return (x - minimum) / (maximum - minimum)