two different time bandwidth limit script

hi
im trying to modfy this script to do different time bandwidth limit

so exatly what i want it to do is user can have total 10gb a day he can use 5gb from12 am to 12pm if he finish the 5gb script should lower his speed to 2mb
if there is 2gb left that he didn’t use script should add it to the next 5gb , from 12pm to 12am he get his speed back to original and contenue to use the next 5gb if he finish it lower it speed to 2mb
if he finish all of the 10gb from the first time then all the day will be 2mb .
i hope it is clear

/queue simple { 
#account info
        :local uName "queue1"
#Download size
 :local u1TotalBytes 5179869184
 :local u2TotalBytes 5179869184
:global itime value=[/system clock get value-name=time]
        :local uList [find name=$uName]
        :foreach u in=$uList do={
        :local ul [get value-name=max-limit $u] 
        :if ($ul = "229376/2097152") do={  } else={ 
        :if ($itime < "12:00:00") do={ 
        :local traf [get $u total-bytes]
        :if ($traf > $u1TotalBytes) do={
#Lower speed to
 set $u burst-limit=229376/2097152 burst-threshold=229376/2097152 burst-time=\
 5s/5s max-limit=229376/2097152 limit-at=229376/2097152   
        :log warning ("User (" . [get $u name] . ") reached the traf limit1..")
}}
        :if ($itime > "12:00:00") do={ 
        :local traf [get $u total-bytes]
        :if ($traf > $u2TotalBytes) do={
#Lower speed to
 set $u burst-limit=229376/2097152 burst-threshold=229376/2097152 burst-time=\
 5s/5s max-limit=229376/2097152 limit-at=229376/2097152   
        :log warning ("User (" . [get $u name] . ") reached the traf limit2..")
     
    
        }
        }
        }
        }
}

as you can see i already tried but i don’t know that much in scripting maybe an expert can help here

thanks

no one ???

plz???

hmmm