Fixed calendar's gotodate calculation.