Account for empty end dates and end dates that match start dates