Daylight Glare Probability

Good afternoon all,

I hope someone might be able to help.

I am currently researching upon daylight level for interior space to ensure visual comfort and required illuminance levels are met by natural means. I want to analyse the daylight glare probability for a room, is anyone aware how to calculate Daylight Glare Probability in Dynamo?

Really appreciate the help.

Regards,
Giada