Effects of changing distance on gravitational force