Fix time bug
Fix bug int Min and Max
Green scheduling