The time constant is a concept that is important to understand when talking about how capacitors charge and discharge. A capacitor's time constant is calculated as the product of its resistance and capacitance.
The formula is to get a capacitor's time constant. This number provides the amount of time (in seconds) needed for a capacitor to charge to of the current-voltage. The capacitor will be charged to more than of the provided voltage after five-time constants.
The capacitor needs infinity of time to charge completely
Thus, the following formula can be used to determine how long it takes a capacitor to charge:
Time for a capacitor to charge
Hence, it takes five times as long to charge the capacitor to capacity.