Relationship between capacitor and external resistor