Freelancer:
TheoTsori
Js Scheduling System algorithm
I have added two jpegs containing the code.