I have a bunch of formulas here, but I don't want to explain. You can download winisd for free. It's not the best design program but it will tell you how long to make your port to tune a box. I learned from "Great Sound Stereo Speaker Manual" by David Weems. So you can "learn it" or just use the programs available on the internet. I learned it but just use programs because it's easier then doing all the math. If you still want help or to double check your answer just ask. I would suggest in the mean time playing with the numbers but nothing exact until your enlosure is in the building process so you know exact air volume.
Also, I've been told to keep the H*W around 4 to 1 ratio to keeep down port noise.