calculation of backup diff