Calculates the value in ohm of a resistor