The general formulas to calculate the total surface area of a rectangular prism are one is perimeter * prism_height + base * traingle height. Other formula is calculate the top, bottom, and lateral surface areas and add those. Surface area is ½√[(a + b +c )(b + c - a)(c + a - b)(a + b - c)] + h(a + b + c).