math -> Math

This commit is contained in:
Firepup Sixfifty 2024-10-01 02:38:15 +00:00
parent ae1da8eac7
commit e57cb5ba80
Signed by: firepup650
SSH key fingerprint: SHA256:U0Zp8EhEe3CMqFSrC79CqatzaEiL4sjta80/RSX2XrY

View file

@ -178,7 +178,7 @@ function predictSpeed(goalDate, goalNumber, currentNumber) {
if (timeRemaining >= 0) {
daysRemaining = Math.ceil(timeRemaining / (1000 * 60 * 60 * 24));
} else {
daysRemaining = math.floor(timeRemaining / (1000 * 60 * 60 * 24));
daysRemaining = Math.floor(timeRemaining / (1000 * 60 * 60 * 24));
}
let neededSpeed = (goalNumber - currentNumber) / Math.abs(daysRemaining);
return [daysRemaining, neededSpeed];