Is there a way to change the "Time in milliseconds" property in a timer with code?

I wanted to make it so that if you press a button, you can add 2 seconds to the timer, but I can’t seem to edit the “Time in milliseconds” property with code. Can it be done? And if it can, how can I do it?

What if you add more seconds using the + block in the math tab?

I tried that, but it will just reset the timer…

Could you show us how have you tried?

I forgot to mention I still want to keep the interval millisecond the same.

If you are displaying the timer in a label then you could add it to the label and not the timer using the addition math component.
Timer Add
Hope this helps.