With this online calculator you can calculate sewerage slope of pipe and sewerage fall of pipe.
Formulas:
1) u = 1 / d
u - sewerage slope
d - pipe diameter
2) d = u*l
d - pipe diameter
u - sewerage slope
l - pipe length
Minimum sewage slope is guarantees a normal drainage of sewage.