added absolute value difference

Working difference (use absolute value to remove negative numbers)