Rule for switching two lights from sunset to midnight both half of the time

Look at my lighting and my time of day postings on tge following thread. Automation/Orchestration Design Patterns