If the toilet needs a stack to vent, it should be located in line with the stack or have the bathroom beneath the line. At most, the toilet should only be 2’ to 3’ away.