Added function to calculate date range, especially for "to present" ranges