Calculate the volume of the figure