What's the formula for finding a slope of a pipe

@imaliasad This has been already answered here

Do not ask same question multiple times on forum.