Refactoring way to get Range of dates