There is an automatic calculator on this site. Then if you keep scrolling down, you will find the chart to compute it manually:
Subtract your band measurement (step 1) from your cup measurement (step 2). Generally, for each inch in difference, the cup goes up by one size. See the cup size conversion chart below.
http://www.herroom.com/bra-fitting-advice,901,30.html