about 10 inches after the y would be the best proformance wise, i know on the racecars they recommend 10 in after the collector before the muffler.
I'd do after the flange so you don't have to cut up a brand new y.
I'd do it after the flange as well. let me know how you like that qtp.