Or you can download a program like WinISD, and when you input the box size and port diameter (or lenght and width), it will tell you how long the port has to be for a desired tuning frequency. However, WinISD and doing it using the forumla almost always give different lengths needed. Best to do it by hand IMO.