Y2 Y1 X2 X1 Formula