Countdown timer from input

Hello.

Is it possible, to make a countdown timer in HA that gets the timer period from an input?
Ex. from input number or slider