A good rule of thumb for fastener thread length of engagements is that there is no general rule of thumb only, I suppose, rules that apply to limited applications.
Bickford gives detailed formulas for cases of differing relative nut and bolt strengths. Basically the minimum shear strength in...