Working on difference calculation