The course duration is used to calculate the default course end date. The course end date is used for determining whether a course should be included in a user's list of courses.  It may also be used by custom reports. Users can still enter the course after the end date.