how to solve for the compensating variation