Except for the mistake, I guess the answer is something like:
context Person :: calculaTotal Returns (): Integer body:
Unfortunately, I do not know how to get access to all of a person's jobs and add up to their earnings, I also did not find so many good materials on the internet that could clear my doubts, except for some pdfs in English. If you have links that can help in understanding OCL, thank you!