I have recently learnt Riemann-Roch formula for surfaces. Roughly speaking, the theorem says that on a reasonably nice surface we have the relation: $$ \chi(D) = \frac{1}{2}(D.D - D.K) + p_a + 1 $$ where $D$ is a divisor, $\chi$ is the Euler characteristic, $K$ is the canonical divisor, and $p_a$ is the arithmetic genus. I am trying to use this to figure out $\chi(D)$ (or some components in the sum defining it), and am naturally led to the question of what can be said about the arithmetic genus $p_a$. In the case of curves, there is the degree-genus formula which allows one to compute the genus of a curve on a plane. Is there an analogous formula for the genus of a surface given by an equation in a three dimensional space? If not, what methods are there to compute $p_a$?
Note: This is related, I hope not too closely, to an assignment. Hopefully, using SE is no more morally objectionable than using a book.