Assuming density d of a planet to be uniform