Adding day counter to current clock?

Hi guys, so right now I have a military hour clock going on my game. It’s set up as shown below. I was wondering what type of variables or set up I could use to make it so when it finishes a full AM-PM round, it’ll display a number of days. I have the images needed to put days 0-9 next to it. I just don’t know how to cycle it.
Thanks in advance!
mainclock.png
UI.png
uibottom.png
You do this once every frame? I wouldn't do that... That would just cause horrible lag.
Instead of counting the frames, just do +1 minute and then "wait 400 frames". That would be much better.

Edit: To actually answer your question: I can do you something better... How about you only have to count 1 variable, and the rest will be calculated automatically? Minutes, hours, days, months, years... It is rather easy with a few script calls. And I have them all ready for you. I just have to find them again. (Got so many unfinished porjects, I am sure I made them ine one of those, just don't remember which one)
You do this once every frame? I wouldn't do that... That would just cause horrible lag.
Instead of counting the frames, just do +1 minute and then "wait 400 frames". That would be much better.

Edit: To actually answer your question: I can do you something better... How about you only have to count 1 variable, and the rest will be calculated automatically? Minutes, hours, days, months, years... It is rather easy with a few script calls. And I have them all ready for you. I just have to find them again. (Got so many unfinished porjects, I am sure I made them ine one of those, just don't remember which one)
This actually doesn’t lag anything at all. Which the switch kills, it’s only running 3 things every 400 frames. And I plan to raise that to 600 for longer hours. But if you can script to calculate this isn’t days that would be great!
It runs "+1" and the condition each frame. This might not be a problem for your computer, but your players might have a less powerful machine.

I'm on my way to work now. When I get home, I'll look up the script calls.

Original thread: https://forums.rpgmakerweb.com/threads/adding-day-counter-to-current-clock.148796/