Looks good indeed, but it doesn't seem to take into consideration teams, vacation or if the staff is even still active.
It seems to distribute it on all staff members that exist.
A common thing that I've seen so far in the existing ones is that they insist on keeping count on who was the staff member that last got a ticket assigned to them.
I'm not sure that is the proper way but I could be wrong.