Problem with onChange function and millis delays in switch

Wow I wasn't expecting that!
Ok I'll have a look, Thanks