Ajustado, daba demasiados días
This commit is contained in:
@@ -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", {
|
||||
|
||||
Reference in New Issue
Block a user