If your trainer has not set any limit on given course, then there is no time limit to complete the course as an enrolled learner. The trainer can enforce a time limit with an access window defined by start and end date. If the trainer has applied such a window you will require to complete the course before the end date. Post end date, the course will appear in your list of courses, but it will not be accessible.