How to calculate daily daylight factor

Can I calculate daylight factor for everyday in the year?

I try to this link :

In daylight factor calculation there is no concept of time or direction. Search for daylight factor inside the forum and you should find longer answers.