Discharge pipe
The following drawing shows the maximum length combinations of vertical and horizontal discharge pipes.

Preconditions:
Minimum water velocity 0.7 m/s to secure the pipe is self-cleaning.

Assumption for shown discharge pipe:
Outer diameter: 32 mm
Inner diameter: 26-30 mm