John: Here are some examples of Jack Rafter Compound Angle Calculations . The formulas will solve the miter, bevel and mortise angles for not only jack rafters but any stick rectangular in section.

A couple of more links:
Roof Framing and Joinery Math
Online Math Notes and Diagrams