version 0.2
dynamically calc interval for scheduler