Resistance and current calculations