Ajustado, daba demasiados días

This commit is contained in:
2023-05-02 10:55:47 +02:00
parent cd2af86701
commit fc1c78b90c

View File

@@ -24,7 +24,7 @@ const calcular = () => {
let valor = 0;
valor = temp_max.value - humedad_relativa.value * 0.2;
// ajustar
valor = valor * 0.5;
valor = valor * 0.27;
let hoy = new Date();
let newDate = date.addToDate(hoy, { days: Math.round(valor) });
fecha.value = newDate.toLocaleDateString("es-es", {