Planetary Weight Function

Creates an anonymous planetary weight function which include the
calculations for planetary weights and stores the values into variables.

Depending on the user’s planetary choice, the corresponding conditional
will run and return the appropriate value outside of the function.