I don't factor in rainy/cloudy/thundery days, they are random occurrences. I just take the sunrise and sunset times from the locality in question and program that into my lighting schedule, so for example here is my times for this month:
3,1,7:17,19:19
3,2,7:16,19:19
3,3,7:16,19:19...