Time based Bandwidth Scheduling Scripts

Hi there everyone,
It’s Ethel from Bangladesh. I am new here, so if I commit any sort of mistake please forgive me.
Right now I am dealing with a Mikrotik Routerboard 1100AH X2. I have two networks (192.168.1.0/24 and 192.168.2.0/24) and what I need to is to allocate 20 Mbps bandwidth in accordance with day time and night time including weekdays and weekends between these two networks. I am explaining the bandwidth chart below in brief:
Queue 1---------- Target address- 192.168.1.0/24---------- Max Limit 15 Mbps(both cases)---------8 AM to 5PM---- Weekdays
Queue 2---------- Target address- 192.168.2.0/24---------- Max Limit 5 Mbps(both cases)---------8 AM to 5PM---- Weekdays
Queue 3---------- Target address- 192.168.1.0/24---------- Max Limit 5 Mbps(both cases)---------5 PM to 8AM---- Weekdays
Queue 4---------- Target address- 192.168.2.0/24---------- Max Limit 15 Mbps(both cases)---------5 PM to 8AM---- Weekdays

Queue 5---------- Target address- 192.168.1.0/24---------- Max Limit 2 Mbps(both cases)---------Weekends
Queue 6---------- Target address- 192.168.2.0/24---------- Max Limit 18 Mbps(both cases)---------Weekends

I tried to create these lists using winbox, but the rules were always red marked. Can anyone please provide me some sort of scripts of slides of winbox procedure.
Plus what I also need is to create queues for around 500 users with 1 Mbps speed for both download and upload. Is there any easy solution for allocating the mentioned bandwidths for 500 users without creating 500 queues.

The rules are red because times cannot “wrap around” midnight.

To make a queue for each user, define it in the user profile in ppp profiles, hotspot user profiles, etc.
The Mikrotik will dynamically create a new queue for each user that logs in.

Thanks Zerobyte,
For such a quick response. Can you please explain how the time schedule works in Mikrotik? In one place I have found that to keep the first queue going I need to schedule a script like starting time 8 am interval 1 day and again for other queue need to add up another script in scheduler saying starting time 5 pm interval 1 day.
Can you please explain how the time based queue works in Mikrotik?

Sorry this reply was much longer - I haven’t really used time-based queues much, but I would think a few thoughts would help:

almost certainly, the queue is going to be “disabled” whenever the current time is not inside the range defined for the queue. If you’re using simple queues, these are processed top-to-bottom, so you can use this to your advantage.

Make the nights queues the ‘default’ queues and place them at the end of the list, with no times.
Then set the daytime queues with 8am-5pm and place them before the night time queues.
Finally, the weekend queues - place them before the daytime queues, and set them to be active on Saturday and Sunday.
If you want Friday night and Monday morning to be the same as weekends, then you’ll need to create duplicates of the saturday and sunday queues, place the duplicates before daytime quesues, and set their schedules to be midnight-8am on Monday for the monday morning queues, and 5pm-11:59:59pm on the friday night queues.