kenak (energy building) calculations in php