The "quick n easy racers trick" with no math involved:
Install the pipes longer than what you think you'll need. Draw a line down the length of the pipe with a good wax crayon. Now take the car for a quick and brief blast. Cut the pipes where the mark begins to have melted off.