TV time tracker

I’m converting from openhab to homeassistant and i’m struggling to convert one piece of automation.

My daughter is allowed 60 minutes of TV a day.

In Openhab it listened for the ‘Activity’ to change in Logitech Harmony remote, and counted the time it was != “OFF”. if time > screentimelimit, it turned off (and stayed off)

What could i use to recreate this all in homeassistant?
Is there a homeassistant equivalent of a timer or a cron event?

Assuming you did the new native Harmony control, you could probably create an automation to turn the TV off after a trigger event using the for: option.