sleeptime calculation tweak