def project_value(value, src_min, src_max, dst_min, dst_max):
    """project value from source interval to destination interval"""
    scaled = float(value - src_min) / float(src_max - src_min)
    return dst_min + (scaled * (dst_max - dst_min))