It might be a "boring" answer, but it depends on how advanced you want the automation to be. It can take you 10 minutes or multiple hours. When you plan automation, we always recommend you draw it on a piece of paper first. When you're done, you can create the automation way faster than if you decide as you go!