I'm not aware of any software that backward calculates tuning but it's pretty easy to do. Just get your internal volume and port length and then start plugging tuning frequencies into a port calculator. When you find a tuning frequency that calls for a port the same length as yours, there you are.
And port length is measured through the center of the port, regardless of how the port is shaped.