To calculate the difference between profiles