Average in diff calculation