If this was done I'd imagine it would be simplified to not take into account light refraction, thick atmospheres can bend alot of light over the horizon. I have no idea how that would be calculated, but I think it's based on the planetary tilt. A tidally locked planet would probably just have N/A as the duration because it would be a polar night forever at the antistellar pole.