def METHOD_NAME(value, unit):
    if value < unit / 10.0:
        return 0
    elif value <= unit:
        return 1
    elif value <= unit * 2:
        return 2
    elif value <= unit * 3:
        return 3
    else:
        return 4