Fixed date overlap logic.