title: Calculating hours of sunlight in a year based on latitude
body: <p>I need to calculate amount of hours of sun in a year based on lat and long.</p>
  
  <p>I am creating a solar calculator which will factor in sun hours during a year to output annual variables.</p>
  
  <p>I found this calculation: <a href="https://stackoverflow.com/questions/6372802/calculate-daylight-hours-based-on-gegraphical-coordinates">Calculate daylight hours Based on gegraphical coordinates</a></p>
  
  <p>To clarify, the calculation in the thread above looks good but the date/time bit can be eliminated because I just need annual value.</p>
  
  <p>Any help would be gratefully appreciated.</p>
  
  <p>Thanks</p>