Flow - If light is on more then X hours turn it off

perhaps because of…

and yes you need max 30 flows if all the 10 lights are all
in 10 different zones and you do it in the way you ask.