Calculate Maximum Height