Use this calculator to figure out how much sun time you need given your latitude/longitude, cloud cover, elevation, etc.
https://fastrt.nilu.no/VitD.html
And keep in mind that using your skin to generate Vitamin D from the sun is a complex process that takes time. Exposure during the day typically results in Vitamin D being made available in the evening, and thorough washing can reduce yield.
Getting enough sun at some places or latitudes is almost impossible during the summer unless you work outside during the breaf period of time there actually is light outside. It's also cold.