dot-getSleepTime function

Get time to sleep depending on the numer of previous iterations