sewer vent pipe

I was inspecting a home and the PVC sewer vent pipe ran up to the roof near the front of the house. But the bathroom was near the rear of the house. What is the farthest and closest the vent pipe is allowed to be from the bathrrom???

No more that 1/3 of the total permitted length, per Table 7-5, of any minimum sized vent shall be installed in a horizontal position.

Exception: When a minimum-sized vent is increased one (1) size for its entire length, the maximum length limitation does not apply.