Here are the equations you need to compute certain lines on the forms (the ones that say "refer to page X" in the tax booklet). If you find one missing, let me know and I'll add an equation to this page.
Line 8a: Require Schedule B if interest are over $400
Line 9: Require Schedule B if dividends are over $400
Lines 21, 24-26: Just request a number
Line 38: if checked a box on 37a or 37b, enter $5,000 on line 38; otherwise use Schedule A or the numbers in the box on the form (next to line 38) -- the user should choose which. Ignore the part about "if can be claimed as a dependent".
Line 40: Multiply 1500 by the number of exceptions in line 6d
Line 42: Compute the tax on the amount in line 41. Use a tax rate of 33% for income over 150K, 28% for income over 75k to 150K, 17% for income over 30K to 75K, and no tax for incomes under 30K.
Lines 45,46,56,58: Ignore the mention of the form
Line 28: If they check yes, just use 137,300.
For any other line that mentions a form or worksheet, ignore that part and just enter a number.