Fix the way to calculate the difference