Voltage and Resistance Calculation