Calculation of Total Resistance