BASEHTML calculate