$p0_max = $width >= $height ? $width : $height;
