Measureing drive shaft

How do I measure for the drive shaft length I need from the tranny to the rear?

Evan