The best way to get it right the first time is to assemble everything and than take a measurement from the rear of the tranny where the yoke goes in to the the nut that holds the axle u-joint on. A good drive shaft shop knows just how much to subtract to build the exact length drive shaft.
Joe