[0] https://www.healthline.com/nutrition/vitamin-d-from-sun#skin...
There's a metric left out of this equation.
How much of the body must be exposed?
the sun must be above 50' above horizon for UVB to penetrate the atmosphere to reach the skin. When your skin is exposed to sunlight, it makes vitamin D from cholesterol
https://theralightinc.com/best-time-to-get-vitamin-d-from-su...
https://www.healthline.com/nutrition/vitamin-d-from-sun#time...
https://www.nytimes.com/2019/02/08/well/live/does-sunlight-t...
For me, this only counts from May to August: I'm pretty far north, and there isn't proper sun strength much of the year.
There are other related calculators linked also.
Vitamin D production is only made on the UVB range that is highest at midday. Both UVA and UVB causes erythema. Counterintuitively to common sense, it is better to sun bath midday than early in the morning.
If you sunbath at 8 you might need twice as many time to produce the same amount of vitamin D and you be exposed to much more UVA, thus more like to get burn.
https://www.nationalgeographic.com/photography/photo-of-the-...