calculate auto scroll time according to scroll distance