A rectanglar or even rectangular, is an adjective and there is no such thing. You can have a rectangular pyramid or a rectangular prism.
The formula will depend on which of these it is and on what information is available to you.
Chat with our AI personalities