0
for example: A telemarketing assistant takes 50 calls in a day. however there is a target of 330 seconds per call, which is 6 minutes maximum. What I want to do is an algorithm where I can put the connection time in the input, then calculate the media based on the first link, as I add the next few minutes of calls, would add up based on the number of times I put in the number of minutes of call. I’ve done something, it seems efficient but the question of the sum being relative to how many times I add the time of the links does not work, but help me?
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>calculo de TMO</title>
</head>
<body>
<section>
<div class="centro">
tempo de ligação van gogh:
<input class="tempo" type="text"><br>
<button onclick="clicar()">calcular</button>
<p class="calcular"></p>
</div>
</section>
<script>
function clicar(){
var tempo = document.querySelector(".tempo").value;
var resultado = 0;
for(var i = 0; i < 100; i++){
resultado = parseInt(tempo) * i * 60 / i ;
}
document.querySelector(".calcular").innerHTML = resultado;
}
</script>
</body>
</html>
It’s hard to understand what you want. Improve your Portuguese.
– user60252