Setting variable and overriding for a timer in arduino

how do you think timer will change its value ?

study

you might also benefit from studying state machines. Here is a small introduction to the topic: Yet another Finite State Machine introduction