The DynoMax tech section has some good information about calculating exhaust diameter based on C.I,D. and horse power
seems like muffler selection is also a factor in their calculations
http://www.dynomax.com/assets/2012catalog_pdf/2012_Dynomax_techsection.pdf