Automatic scheduling for month closing and beginning

This time, I'm trying to close an activity scheduled over two or more months.
Let's say an activity is scheduled with:
Start: 01/20/2026
End: 04/20/2026
What I want is to: as the days go by, at the end of each month, "save this data so I can continue"

• Close the activity on 01/31/2026 at 11:59:59 PM and restart it on 02/01/2026 at 12:00:00 AM
• Close the activity on 02/28/2026 at 11:59:59 PM and restart it on 03/01/2026 at 12:00:00 AM
• Close the activity on 03/31/2026 at 11:59:59 PM and restart it on 04/01/2026 at 12:00:00 AM

This is to quantify the progress per month.

The details are I need it to act automatically while the mobile device is on or off

I started with this
any suggestion


prog_aut.aia (19.4 KB)

Can you elaborate what kind of data you are talking about?
How do you enter data? Daily?

Taifun

"This automatic record should only run once a month at the end of the month."

During the workday, the employee starts and closes their activities, and the format for starting and closing activities is: dd/MM/yyyy HH:mm:ss

As I mentioned, this action is only to count the actions taken during the month.

Once the closing and restarting process is executed at the end of the month, the employee can continue working since the process was closed and restarted without needing to save this data.

Data to be saved while time elapses
• 31/01/2026 23:59:59, 01/02/2026 00:00:00
• 28/02/2026 23:59:59, 01/03/2026 00:00:00
• 31/03/2026 23:59:59, 01/04/2026 00:00:00

This process not necessarily has to run exactly in the last second of each month

What about detecting at each start of the app, if an end of month processing needs to be executed and in case of yes, do the processing?

Just store the month of the last end of month processing in TinyDB and at each start of the app compare the current month with the stored month. If it is different, start the end of month processing

Taifun

Good idea. I'll try it.