FYI there is a third party schedule card/integration that does this:
Also an addon version of you use HAOS: