I'm missing something. Why is this not a simple JS countdown timer?
Do you mean that the use has 10 minutes total, possibly spread across multiple sessions? So 3 minutes today, 2 minutes tomorrow, 5 minutes next week??
An optimist sees the glass as half full.
A pessimist sees the glass as half empty.
A realist drinks it no matter how much there is.