Calculate country contributions script