Calculating force of gravity