Find planetary temperature
What you are looking for is called a zero-dimensional climate model. The equation without the Greenhouse effect is simple, though with a lot of simplifications, one with a very crude, linearized, Greenhouse effect is possible.