How do I calculate how long it will take for a capacitor to discharge when shorted?
The discharge equation is:
\$V_c = V_0\cdot e^{\frac{-t}{R\cdot C}}\$
If this is re-arranged to isolate t:
\$t = -R\cdot C \cdot ln(\frac{V_c}{V_0}) \$
if R is a true short and there is no series resistance then the capacitor will instantly discharge (with infinite current). In a real-world situation with a finite resistance it will discharge &quot;quickly&quot; with an exponential characteristic
use python/excel/calculator and plug your numbers in but use something like 1e-6 for the final capacitor voltage Vc