change calculate datepicker position