Each time x increases by a certain amount, set y

This should work: