def mapper(min_val, max_val, perc):
    """
    calculate relative position in delta min/max
    """
    x = abs(max_val - min_val) * perc
    if min_val < 0:
        return x - abs(min_val)
    else:
        return x + min_val
