You are looking for an average number of (direct) sunlight hours per day, for the chosen period of time (summer, winter, whole year)?
If that is so, check the attached definition below:
It contains a custom python component. This one can also be replaced with Ladybug Branch Data component, but I find that one taking more time to load and fails with annual analysis period. If your PC is weaker as mine is, just use the component provided in attached definition. Make sure that you define the analysis period for particular period of time.
Also, I am using Lincoln, Nebraska location. You can make your own location by providing exact latitude/longitude coordinates of the actual site, by using Ladybug Construct Location component.
Let me know if this helps or if you have any other questions.
Sun_Shade_Area_Analysis3.gh (499.2 KB)