computeResistance