Facing Problem with Early dates logic