I'm currently remodeling my bathroom and have a dilemma. Please see photo below. As you can see, the 3" line (marked 4" on the photo but actually 3"), gets pretty much in the way of the desired location of the new drain.

I'm wondering if I can have about 28" from the drain to the P-trap. I am upsizing the pipe to 2".