### http://www.compileonline.com/execute_python_online.php

def conditions(x,start,end,step):
    myTemp = float(x)
    y = -1
    for i in range (start, end+step+1, step):
        y = y + 1
        if myTemp < i:
            break
    return y
