I'm 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
.
Only when I do this calculation on the calculator comes a broken result that I do not know how I turn into an algorithm that returns hours, minutes, and seconds. The source is the following link: link