Shortening driveshaft - how to measure?

Also cut the rear of the shaft not the front, less vibes that way. I have done 3 that way and had not needed to rebalance.