updated gravity formula