Hold action for Light Card on Lovelace

Hi, I have a question regarding hold action and dbl click action for LightCard/ButtonCard. I want to configure it in a way that after a hold:
if light is on, wait 1 minute and turn it off
if light is off, turn it on and wait for 1 minute and then turn it off

I am kinda new to the home assistant so sorry if it is a lame question. Have a great day! :slight_smile: