The video is pretty good at explaining it. You need to know the max eye to eye length at full compression and the minimum at full droop. The difference is the length of shackle travel. Then you have to pick a maximum angular motion of the shackle. For off road this could be as much as +/- 45 degrees or a total of 90 degrees. At 45 degrees the ride feels “floaty“ and unstable, so maybe +/- 30 degrees would be better on road. Remember that longer shackles are also less stable side to side. Then the rest is trigonometry to find the shackle length. Mount the shackle so that it is at your chosen angle at full compression using the compressed eye to eye length as a guide.
For example, using a +/- 30 degree swing, the shackle length would be equal to the shackle travel length. This is two times the sine 30 degrees times shackle travel. Since the sine of 30 degrees is 0.5, 2 x 0.5 = 1 so shackle travel = shackle length. In other words, in order for the shackle to swing + and - 30 degrees for the difference between full compression and droop, the shackle length would need to be equal to the difference in eye to eye length over the range of compression.
You can use a google search for other angle swings, such as 45 degrees. The sine of 45 degrees is .707 so 2x .707 is 1.414, so the shackle length would need to be 1.4 times the shackle travel.