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

The circuit schematic is too far away, but let me guess :
The capacitor is in parallel with the LED.
The switch is in parallel with the LED.
The resistor is not used.