I seem to have asked my question wrong so here goes again I'll try to be more to the point. Is the top answer on this page
http://stackoverflow.com/questions/257717/position-of-the-sun-given-time-of-day-and-lat-long
the solution to the question asked or is more needed?
Thanks