Calculate Global Time