Wrap a tube of dark paper around the lens in question, hold it in pace with a rubber band, and slide it back and forth to determine where vignetting starts. The length of the tube in front of the lens will give an approximation of the maximum useful hood length at a given focal length. No math required.
I'd note, however, that in my experience a hood equal in length to the diameter of the filter ring of a lens offers all of the
PRACTICAL off-axis, contrast destroying, protection you need. Any extension beyond that offers very little, if any, additional effect and becomes so inconvenient as to be left in the bag or at home when most needed.
Also note that any hood used on a zoom lens is only efficient at the widest FL that doesn't vignette -- if you're happy with the tulip hood on an 18-250mm zoom you've already conceded that point. Carry hoods suitable for
both ends of the focal length range of a zoom lens for optimum effect.
The beer can pictured above on a 300mm/f5.6 prime was about 80% longer than necessary and was only intended to illustrate the relatively narrow angle of view of lenses used on APS-C DSLRs.
Many of the cheap plastic hoods advertised on eBay screw into the filter ring -- just order for the approximate FL and filter size needed. Again, keep in mind that the hood will only be minimally effective at longer FLs on zoom lenses.
Last edited by pacerr; 11-12-2014 at 04:19 PM.