Calculate the shape constant