Formula For Gravitational Time Dilation