Basic maths: 10k? resistor, 5V voltage, 100µF cap=0.76 second LED fadeout

The ESR of the capacitor also comes into play, which limits the current flow out of the cap to some extent.