Can’t find a citation at the moment, but it also depends on what part of your body is exposed. Just resting your forearm on an open car window won’t do it. You have to expose your torso mid-day IIRC.
https://www.healthline.com/nutrition/vitamin-d-from-sun#time...