calculateDistance4Dormitory