Creating an automation based on timer

Maybe this post helps