You need to start with a bigger box size. Figure out how much total air space your port is going to take up, and account for your subs and bracing as well. Then add that figure to the volume you used to find your port length, and you have the total volume that you need. Next, just plug and chug on some calcs to find what dimensions will work well for you. I normally go a little larger with easy dimensions(like solid inches, no fractions) and throw some 45's in the corners to take up the extra room.