Calculator to calculate the resistance of a circuit