How to calculate the volume of rectangular prism?