First of to clarify, you said you were under the IPC, not all codes read the same but if you are IPC the vent distance is unlimited which means prtety much that if there is a vent on the system you are good to go. The reason is because toilets are self siphoning, self venting fixtures and don't need a vent to operate correctly.