aboutsummaryrefslogtreecommitdiffstats
path: root/app/models.js
diff options
context:
space:
mode:
authorPetri Hienonen <petri.hienonen@gmail.com>2025-11-16 09:15:03 +0200
committerPetri Hienonen <petri.hienonen@gmail.com>2025-11-16 17:29:42 +0200
commit57bb986524388b6fc9441aea7a53ff9852380663 (patch)
treef5f369d1ae27162149cb89c065feb0503808a46e /app/models.js
parentb9eb804ae4f47974ad99025892dd477169809de1 (diff)
downloadhousing-57bb986524388b6fc9441aea7a53ff9852380663.tar.zst
Change dom access pattern
Diffstat (limited to 'app/models.js')
-rw-r--r--app/models.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models.js b/app/models.js
index 95f18fd..fa9f945 100644
--- a/app/models.js
+++ b/app/models.js
@@ -1123,7 +1123,7 @@ export class ScoringEngine {
// 3. Convert to perceived value
// ----------------------------
- const PV = Math.exp(logPV);
+ const Pv = Math.exp(logPV);
// ----------------------------
// 4. Compare with listing price
@@ -1131,7 +1131,7 @@ export class ScoringEngine {
if (!house.price || house.price <= 0) return 0;
- const desirability = (PV / house.price) * 100;
+ const desirability = (Pv / house.price) * 100;
return Math.max(0, Math.min(100, desirability));
}