Ref. scetch.

I'm going to install a wye in my waste stack below the wye for the WC to introduce drain from my 2nd floor bath tub. I'm wondering if there is a code or other requirement (or recommendation) for the distance (dimension) below the WC wye that the wye for the bath tub drain should maintain.

Scetch of proposed drain system:



Thanks in advance...