

 function calculatewrapped(width,length){
  
  var area = width*length;
  var price=0;
  
  //var tier1addition = 30;
  //var tier2addition = 30;
  //var tier3addition = 30;
    
  var tier1price = 0.1456;  
  //var tier1price = 0.1914;
  //var tier2price = 0.1795;
  //var tier3price = 0.1767;
  
  var discount=1.0;
  
  if((area>=2000)&&(area<3600)){
  discount=0.9;
  }else{
  if(area>=3600){
  discount=0.85;
  }
  }
  

  price=area*tier1price;


  price=price*discount;
  price=Math.round(price*1.035*100)/100;
  return("$"+price.toFixed(2));
  }

  function populateForm(form){
  
  document.getElementById("price").innerHTML=calculatewrapped(document.getElementById("width").value,document.getElementById("length").value)
  return true;
  }