text: document.title = 'Web App – Simple Interest Calculator';
  function compute()
  {
      p = document.getElementById("principal").value;
      t = document.getElementById("years").value;
      r = document.getElementById("rate").value;
  
      if (p<=0) {
          alert("Please, Enter with a positive number");
          document.getElementById("principal").focus();
          return
      }
      
      var a = p*(r/100)*t
      var output = document.getElementById("result");
      var text = "<br>If you deposit <span id=first>" + p + "</span>,<br>at an interest rate of <span id=second>"+r+"%</span>.<br>You will receive an amout of <span id=third>"+a+"</span>,<br>in the year <span id=fourth>"+ (parseInt(new Date().getFullYear())+parseInt(t))+"</span>";
      output.innerHTML = text;
      
  }
  function slider_value(){
      var slider = document.getElementById("rate");
      var output = document.getElementById("demo");
      output.innerHTML = slider.value+"%";
  }
  