Or put the old shaft in, bottom it into the trans, and measure the diff end.
Just be sure to allow for the new shaft to NOT bottom out in the trans.