The Sunbathing Calculator is a smart UV-exposure tool designed to estimate safe sun exposure time based on skin type, UV index, location, time of day, and sunscreen use. Its purpose is to help users enjoy sunlight while minimizing the risk of sunburn and long-term skin damage.
By combining dermatology guidelines with environmental UV data, this calculator provides personalized recommendations for how long you can stay in the sun before your skin begins to burn.
Sunburn happens when skin is exposed to ultraviolet (UV) radiation from the sun for longer than it can safely tolerate. The intensity of UV radiation depends on:
Time of day
Season
Geographic location
Altitude
Cloud cover
Skin sensitivity
The UV Index (UVI) is an international scale that indicates how strong the sun’s UV rays are at a specific time and place. Higher UV levels mean faster skin damage.
Safe sun exposure time is estimated using UV intensity, skin sensitivity, and sun protection factors.
Basic Sunburn Time Formula
Time to Sunburn (minutes) = MED ÷ (UV Index × 0.025)
Where:
MED (Minimal Erythemal Dose) = Skin’s tolerance to UV before burning
UV Index = Strength of ultraviolet radiation
0.025 = Standard UV radiation constant
When sunscreen is applied:
Adjusted Safe Exposure Time
Safe Time = Base Time × SPF Protection Factor
Where:
SPF (Sun Protection Factor) extends protection depending on proper application
Problem:
Suppose:
Skin Type: Fair skin (MED = 200 J/m²)
UV Index: 8 (high)
Sunscreen: SPF 30
Step 1:
Calculate base burn time
200 ÷ (8 × 0.025) = 200 ÷ 0.2 = 1,000 seconds ≈ 17 minutes
Step 2:
Apply SPF protection
17 × 30 = 510 minutes (theoretical maximum under ideal sunscreen use)
Result: In real-world conditions, sweating, swimming, and uneven application reduce this, so practical safe exposure is much shorter.