Calculate date range from given date