Timmer on a page

How would I make a timmer on a page based of a user selection input value in a database?

https://www.w3schools.com/jsref/met_win_settimeout.asp
https://www.wix.com/corvid/reference/$w.TextInput.html#value

What I’m needing is an amount of times left to be displayed on there members profile page, and the amount of time left based off the value or the selection made from a user selection on the sign-up page! How would I do so?

Thanks,
Andrew

This might help:
https://www.w3schools.com/howto/howto_js_countdown.asp

You will still need to reference the wix API.