Count time even when not playing?

So in my game, you enter a small code before it actually allows you to play. My issue is that upon entering this code I'd like it so that the game immediately begins counting down 720 hours. But I want it so that even if the game is closed and the playing is off working or going out somewhere, that the game continues counting down these 720 hours. Basically I need a way to create a realtime countdown timer that functions even if the game isn't running.
So in my game, you enter a small code before it actually allows you to play. My issue is that upon entering this code I'd like it so that the game immediately begins counting down 720 hours. But I want it so that even if the game is closed and the playing is off working or going out somewhere, that the game continues counting down these 720 hours. Basically I need a way to create a realtime countdown timer that functions even if the game isn't running.
I've done this before using the date js object to simulate the amount of time passed...
(set the time to a variable when the countdown begins then being precise on how and when to check the time passed, I did mine at the start of the game then set the check right before the custom menu for my in-game shop was opened to prevent too many checks and causing lag)

Perhaps there is already now a plugin or a better way though...
This method could be broken by the player setting the time on their manually, that was a whole different problem. I honestly don't know if I figured out how to prevent that or not...

I would really actually like to hear if anyone else has more info on this also. 🙂
I've done this before using the date js object to simulate the amount of time passed...
(set the time to a variable when the countdown begins then being precise on how and when to check the time passed, I did mine at the start of the game then set the check right before the custom menu for my in-game shop was opened to prevent too many checks and causing lag)

Perhaps there is already now a plugin or a better way though...
This method could be broken by the player setting the time on their manually, that was a whole different problem. I honestly don't know if I figured out how to prevent that or not...

I would really actually like to hear if anyone else has more info on this also. 🙂

Yeah, this wouldn't work. My game counts how many hours pass until it needs to be renewed since it's subscription based.

Original thread: https://forums.rpgmakerweb.com/threads/count-time-even-when-not-playing.119173/