The later of two times

I would like a trigger that turns on lights either 1/2 hour after sunset or 8pm, whichever is later. I could set up some booleans (each time turns on the boolean, then an automation that triggers when on time passes and the other’s boolean is true), or maybe two automations with the trigger and condition.

but I am wondering if there is an easier way?

Since the sunset is available as an attribute you could use a template trigger and compare the sunset + offset with 8pm.