From e57cb5ba80e10276176ad2b59c71fa9b1bd43a9c Mon Sep 17 00:00:00 2001 From: Firepup Sixfifty Date: Tue, 1 Oct 2024 02:38:15 +0000 Subject: [PATCH] `math` -> `Math` --- api/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/app.js b/api/app.js index c0663f5..cba6555 100644 --- a/api/app.js +++ b/api/app.js @@ -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];