calculating the volume of a regular truncated pyramid