Calculate Resistance using color Code