It depends on your skin color [0]. For people with light skin, 13 minutes of direct midday sunlight three times a week may be enough. But for people with dark skin, you may need 30 minutes to 3 hours of direct sunlight (the article doesn't make it clear whether that is three times a week or once a day) to get enough vitamin D.
[0] https://www.healthline.com/nutrition/vitamin-d-from-sun#skin...