So, basically in your method, you divide each thing into its own category. C - C, C- C, C - O, C - H, and so the C-C bonds are 0, C-O is +1, C-H = -1 (since it is less EN).
Then in the second one the bonds are: C-C, C-C, C-O, C-O and so same as before, C-C is 0, C-O is more EN so +1 and since there's 2 of them it's +1 x 2?