Calculate diagonal resolution v1.0