Maximum Height Formula In 2d