Assistance with Simple formula

Hi,

I have this scenario:
x = 0 when 0 < i < 5
x = 1 when 5 <= i < 10
x = 2 when 10 <= i < 15
etc…
up to a 100, inc in 5

Think it should be simple to create an one line formula, but just cant figure it out :slight_smile:
Thanks

int x = i / 5;