From cd2af8670178103e043495261d2fefa53833706a Mon Sep 17 00:00:00 2001 From: clonbg Date: Tue, 18 Apr 2023 10:41:12 +0200 Subject: [PATCH] =?UTF-8?q?C=C3=A1lculo=20erroneo,=20ajustar?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/IndexPage.vue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/pages/IndexPage.vue b/src/pages/IndexPage.vue index e60bdde..7383e43 100644 --- a/src/pages/IndexPage.vue +++ b/src/pages/IndexPage.vue @@ -22,8 +22,9 @@ const fecha = ref(""); const calcular = () => { let valor = 0; - valor = temp_max.value - humedad_relativa.value * 0.37; - //console.log(Math.round(valor)); + valor = temp_max.value - humedad_relativa.value * 0.2; + // ajustar + valor = valor * 0.5; let hoy = new Date(); let newDate = date.addToDate(hoy, { days: Math.round(valor) }); fecha.value = newDate.toLocaleDateString("es-es", {