The mobile app provided advice on sun protection ( ie , protection practices and risk of sunburn ) and alerts ( to apply or reapply sunscreen and get out of the sun ) , hourly UV Index , and vitamin D production based on the forecast UV Index , the phone 's time and location , and user input .