Solving for the volume of a pyramid-shaped container