Compare result with end date