I designed this circuit to create a small delay between the input and the output.
The equation which describes the charging capacitor is :
Vc(t) = Vin . EXP(-t/(RC)) = Vin . EXP(-t/τ)
-Vc(t) : the voltage across the Capacitor.
-t : the time variable.
-R : the resistor value in Ohm.
-C : the capacitor value in Farads.
-τ : R×C, the time constant (Ohm times Farads gives us seconds).
Then i compare the capacitor voltage with an operational amplifier which allows me to adapt the "switch on" delay.