# Lesson - Lesson weight

major
Hi, I would like to ask few questions about the Lesson weight-field inside Lesson. Can you give some details (scale/math formula?) about this field? If I have understood it correctly it's based on percents (%), and it calculates these values to give final score of the course inside My Achievements? In your documentation you have explained the field like this : 4. Lesson weight: the weight allows to sort lessons inside the list with all of them. You can manually enter a weight here, but it would be more simple to use the dedicated graphical interface to do that (see next section). I believe this is incorrect?
axel

### Hi,

Hi,

Thanks for reporting this, it's an excellent question.

1. The total score of a course is calculated as the weighted average of scores of lessons inside this course.

So the formula is:

course score = [ (score at lesson 1 * weight of lesson 1) + ... + (score at lesson n * weight of lesson n) ] / (weight of lesson 1 + ... + weight of lesson n)

2. There is nothing to do with the sorting of lessons, the documentation is incorrect, we will change it. Thanks for reporting it.

Best regards,

major

### Hi,

Hi, thank you for the clarification. Time for my next question: I would like to limit, the value of this field inside one course, to be something between 0-100. This way the grading process would be easier for the administrator since he would have clear targets for the lesson weights. For example administrator creates course with 5 lessons and wants them to have same weight value for the final score (so it should be 20 for each). By accident he puts weight value of 30 for one lesson, which would mean that the final scoring is going to be incorrect. By the time value goes over 100, administrator would get error message or notification that the value is over 100 and he would realize that something has gone wrong. Do you think something like this could be done easily with the rules or does it require building a custom module?
axel

### Hi,

Hi,

I don't think there is a rule trigger for the action to add a question to a lesson.

So a module would at least be required to create this trigger.

Best regards,