Added comparison for found dates to never end up in situation where distance of dates is 0 (same dates). Added debug information.