aboutsummaryrefslogtreecommitdiffstats
path: root/app/models.js
diff options
context:
space:
mode:
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));
}