In FEET, if a pipe run is 100 feet long and each stick of pipe is 20 feet long, how is this calculated? How is pipe pro-rated per joint?

If the plan provides an elevation of 23.50 to 26.50 and the run is 100 feet long, how is the percentage of all calculated mathematically?

I've done this before, but I cannot remember the calculations.

Thank you.