Gravitational attraction and ratio calculations