correct diff calc