2
I am making a calculator for calculating Time for any distance on my site, but my question is in the execution algorithm.
The formula is as follows::
tempo previsto
= tempo real
x distância prevista
/ distância do tempo real elevada a 1.07
.
But when I do this calculation in the calculator comes a broken result that I don’t know how I’m going to turn into an algorithm that returns hours, minutes and seconds. The source is the following link: http://www.penoasfalto.com.br/calculos.html
- Weather forecast for any distance:
You are using JAVASCRIPT or what programming language?
– user46523
Jquery, a calculation condition is real time = 1h, predicted distance = 12, current distance = 11 km, estimated time of :1,097573872, this is the result in the calculator, now on the site the result is: 1h 05m 5q sec.
– IvanFloripa
Convert the values to common units, do the calculation and then convert them to hours again. I suggest seconds (which is the smallest).
– Jorge Campos