Rectangular Prism and Pyramid formulas