Hold button to stop countdown. HW or SW? [Solved]

is to tune an RC circuit to the 30 seconds and use it on the base of a transistor.

No that simply is not on. The leakage current from the capacitors will ensure that is a very inaccurate way of going about things.

There is no need for all this if you just write the software correctly.