calculate the volume of the rectangular box