Expression for charge and charging current on a capacitor