Trying to work with formula syntax on zoho crm and not working

Trying to work with formula syntax on zoho crm and not working

Hi, i created a new module that will be used for grade sheet for any of our students, that we will be able to follow our graduate students on the future and stuff like that.

The distribution of grades is based on the following parameters:
A. Homework grade
B. Indicate attendance at class
C. Mid-test score
D. Graduation test score

All of the distribution of these grades I mentioned receive a different percentage of schema depending on the course in which the student studied

And this is what I'm actually trying to do as a Formula code in a module on a field I have that actually aims to summarize all the scores into one final score

How do I create code
Once you identify Course X then calculate the grades:
A. Homework score 20%
B. Attendance score 15%
And so on..

And once it's a Y course
So calculate the scores in a completely different percentage that I will determine
and the Z Course
and the A Course
and for the rest of the courses


This is about 15 courses in total
There are courses where the segmentation of grades is quite similar
But I would love to get help at least for starting the base code,
I believe that from there I will be able to get along the rest of the code

Thanks to all the helpers :)

i am attaching here some photos