Expected value is calculated by multiply each probability time its value and summing these over every probability. Here is a simple example:
The expected value of tossing a fair die is 3.5. This was calculated like this:
Expected Value (tossing a die) = (1/6)(1) + (1/6)(2) + ... + (1/6)(6)
Hope that helps!