Thank you Steve, thank you Solorize
U.S. National Oceanic & Atmospheric Administration (NOAA) uses the same algorithm, based on equations from Astronomical Algorithms, by Jean Meeus.
Here are the links
http://www.esrl.noaa.gov/gmd/grad/solcalc/
http://www.esrl.noaa.gov/gmd/grad/solcalc/sunrise.html
PHP has a build in function (date_sun_info) for Sunrise, Sunset, plus Civilian Twilight, Nautical Twilight and Astronomical Twilight.
attached two helpful excel files for
Solar Calculations Enjoy!!!
NOAA_Solar_Calculations_day.xls
NOAA_Solar_Calculations_year.xls
You do not have the required permissions to view the files attached to this post.