Finish time limit function

- Division bug fix