I could try filling it with packing peanuts...but instead I took several measurements, cut out simple shapes that I can mathmatically calculate the volume, and pieced it together.
After I got the max volume, I designed a port to take a certain amount of airspace away, calculated the loss of airspace from the sub and bracing and other design features, and trail and error, designed the port. If I need to change it after I finish the speaker baffle, I'll have a 18" hole to reach through and extend the port as needed.