added series resistor calculator