I've used this calculator:
http://lenni.info/edd/
I think it simplifies the process. If you're looking at something like a Shimano Tiagra 4500 rear hub with a Velocity Dyad rim, it shows 287mm and 289mm for the spoke lengths.
(You have to click on the names of the hub, rim or click on "enter your own measurements".)