The Greenlee measuring tape is invaluable for minimizing waste.
The instructions are:
1. Measure the distance from terminal to terminal.
2. Add 12" for each 90 deg. worth of bend.
3. For each pull box, j-box, or cabinet, add an additional (2 x box depth).

(If you are as wacky as I am, add a little more for peace of mind.)