calculation of gravitational constant