By exposing more of the skin, you absorb more vitamin D quicker, and so if you tan only 5 to 20 minutes depending on your skin complexion, you basically avoid skin burns and excess damage which causes melanoma and you get the benefits of the sun.
What do you think of this?
Edit: Maybe not what people think of as tanning, but it's basically skin exposure to the sun where you want to limit how long each part of the skin is exposed, but maximise the surface area for vitamin D absorbtion.
Source: https://www.outsideonline.com/2380751/sunscreen-sun-exposure...