add: difference calculation