computes the income similarity