API Call Limit - Google Travel

Hi,

i would like to limit the Google Travel Distance Matrix API-Calls for weekdays 06:00 - 12:00.

In this article there is an automation example, but i dont know how to implement this in which kind of config?

The sensor is called sensor.google_travel_time.

Thanks!