Check out this basic Mathcad solar almanac. File links are below.
I also wrote an implementation of this as Excel spreadsheet file. e-mail me if you're interested in it.
Here are the files: sun.mcd, sun.dat.
©1995 S. Kurowski