Create CalculatePageHeight