How is the acceleration of gravity calculated for planets?
You can use the expression of gravitational force.
We use a bit of the expression of Gravitational Force (in red):
(You can find these values in the literature).
Try with Earth you should find
For other planets simply choose the specific