Calculation of the Grade Point Average (GPA)
  1. Each alphabetical grade is substituted by numerical equivalent: A=5.0, B=4.0, C=3.0, D=2.0 and E=1
  2. The numerical equivalent is multiplied by the number of credits for the course
  3. The products of the course and credits are totalled
  4. The sum is divided by the total number of credits
  5. The quotient is calculated to three decimal points
  6. GPAs are not rounded up

You have finished a bachelor's degree consisting of 40 courses (modules) (5 per semester) each valued at 6 ECTS credits. 
You have received:
13 As, 
11 Bs, 
14 Cs and 
2 Ds.

Remember: A=5, B=4, C=3 and D=2.

To calculate the GPA:
Multiply the grade (A=5, B=4...) by the number of ECTS credits
Multiple the number of courses with the same grade and add them together-> in this example (5x6x13)+(4x6x11)+(3x6x14)+(2x6x2)=930.
Divide the total by the total ECTS credits to find the grade per ECTS, 
the Grade Point Average -> 930/240=3,875.