✅ Solved: Create progress bar depending on time with data binding

Hi,
Please take a look at the picture of the progress bar.
It is progress bar for meditation, depending on time. Time has to be flexible, so it can be 30 minutes or 5 minutes and so on. Depending on time the progress bar will filled slower or faster. As 100% can be 30 minutes, or 5 minutes, or any other time. Time has to counting down from bigger to 0.

I found tutorial on YouTube how to make numbers change depending on time. They are counting up. So I am going to use this principle to make numbers counting down. The challenge for me here is to understand how to connect two numbers, as will be seconds and minutes. And minutes depending on seconds. How I can make this, if anyone has been doing it already?

And second part is to connect this timer with progress bar. Usually before I set up progress bar with start and end point, then blend in state machine, using input number. Is it possible now to make it interconnected with the time in rive?

If someone can share their experience or give me ideas how to make that, it will be so nice!

Thank you😊