Countdown shown in Frontend

here is my write up explaining the whole process.
https://community.home-assistant.io/t/adjustable-countdown-timer-to-switch-off-any-entity-for-dashboard/498126?u=rod_poplarchick