Calculating the primary display size