I find this construction calculator to come in handy for thing like this.
Put in the rise and the run it calculates angle and the length of the unknown.
http://www.sears.com/shc/s/p_10153_1...ion+calculator

Rick C