Rectangular Prism and Pyramid Formulae