adjusted calendar scrolling calculations