There's a good article at www.electrician.com in Articles 1.
I would have done the link right to it but wanted you to check out the rest of the stuff.
Otherwise, just use the cosecant of the angle you want to bend.