IF and timer problem

Hello
Post your sketch to see how we can help.