Consider a joint probability distribution. I have a table where the price variations of the two variables and the joint distributions are represented. They are NOT independent.

How do I calculate the covariance? I know the formula E(X*Y)-E(x)E(Y)

but how do I use that practically? Thans!