Simplify calculation of the quadrant.