calculate force of gravity