There are a bunch of programs that you can use to figure out the tuning for your box.

WinISD and Bass Box Pro seem to be the most popular.

As far as the box, subs up port back will work well, but only if you properly design/build the enclosure.