Cálculo erroneo, ajustar

This commit is contained in:
2023-04-18 10:41:12 +02:00
parent 72c330e17f
commit cd2af86701

View File

@@ -22,8 +22,9 @@ const fecha = ref("");
const calcular = () => { const calcular = () => {
let valor = 0; let valor = 0;
valor = temp_max.value - humedad_relativa.value * 0.37; valor = temp_max.value - humedad_relativa.value * 0.2;
//console.log(Math.round(valor)); // ajustar
valor = valor * 0.5;
let hoy = new Date(); let hoy = new Date();
let newDate = date.addToDate(hoy, { days: Math.round(valor) }); let newDate = date.addToDate(hoy, { days: Math.round(valor) });
fecha.value = newDate.toLocaleDateString("es-es", { fecha.value = newDate.toLocaleDateString("es-es", {