Agreed, that is pretty much a good rule of thumb in aluminum. But it can be calculated, there are curves that give you the shear area of the threads per length of engagement. For example, a M5 (nut) is very close to a 10-32 in diameter, so lets use the 10-32 as an example. A 10-32 has about .3 square inches of shear area per inch of engagement. So, 2 diameters would be 0.4 inches long, times 0.3 square inches/inch or .12 square inches of shear area. A 10-32 torqued to 35 inch-pounds has 1000 pounds of load (or 2000 lbs at 70 in-lb torque, etc). So, 1000 lbs/.12 square inches equals 8300 PSI and most aluminum castings yield at ~30,ooo psi. BTW, DA uses 7075 billet aluminum which is more than double that strength. The more engagement the better up until the point that the fastener just fails in tension..The actual general rule in engineering is the engagement should be equal to or greater than one times the dia. of the fastener. But the common sense rule of thumb is two times the dia. for fasteners under load. In our case we have load and vibration so I would never fly with 1/4" of threads in the hub.