Calculate the volume of rectangular prisms