Question 27156
There are different formulas for different shapes, you need to get a book that has the different formulas, or check on the web, either for a certain one or all of them.