Cálculo erroneo, ajustar
This commit is contained in:
@@ -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", {
|
||||
|
||||
Reference in New Issue
Block a user