Might this get you started?

http://www.emesystems.com/BS2math5.htm

d1