Volume calculation for frustum of pyramid