delay = adval * 250 will give a better linerity, unless you prefer increments of one second.

Al.