πŸ’§ Water Intelligence Engine v2

Unified architecture β€” edit inputs, view computed results

πŸ“‹ Section 1 β€” People Inputs Adults = Expert + Typical + Glamper (auto)

Adults Total = {{ adultsTotal }} (auto-sum)

πŸ›’οΈ Section 2 β€” Tank & Environment

🎲 Behavioral Drift
Models day-to-day unpredictability via N(1.0, Οƒ=drift/2) clipped to [1βˆ’drift, 1+drift].
{{ driftPct }}
0 β€” none 1 β€” max
Draw from N(1.0, {{ driftSd }}) clipped to [{{ driftLo }}, {{ driftHi }}]
Drift = 0 β€” all days use exact baseline (deterministic)
πŸ”’ locked 🎲 random

🧠 Section 3 β€” Behavior Multipliers

User TypeCountShower MultSink MultToilet Mult
{{ b.user_type }}{{ userCount(b.user_type) }}

⚑ Section 4 β€” Activity Engine

ActivityFlow (gal/min)Duration (min)Events/DayGal/UnitGrey BoolBlack Bool
{{ a.name }}
{{ saveMsg }}

🧠 Effective Multipliers (SUMPRODUCT)

πŸ“… Daily Usage Heatmap 🎲 drift {{ results.drift?.toFixed(2) }}

Activity Day {{ d }}

⚑ Activity Engine β€” Daily Baseline

ActivityFresh/dayGrey/dayBlack/dayAttrib %
{{ r.activity_name }} {{ r.daily_fresh_gal?.toFixed(2) }} {{ r.grey_added_gal?.toFixed(2) }} {{ r.black_added_gal?.toFixed(2) }} {{ r.fresh_attrib_pct?.toFixed(1) }}%
TOTAL {{ totalFresh?.toFixed(2) }} {{ totalGrey?.toFixed(2) }} {{ totalBlack?.toFixed(2) }} 100%

πŸ”‹ Tank Projections based on deterministic baseline

TankCapacityCurrentDaily Ξ”Days LeftStatus
{{ t.tank }} {{ t.capacity_gal?.toFixed(1) }} {{ t.current_gal?.toFixed(1) }} {{ t.daily_delta_gal > 0 ? '+' : '' }}{{ t.daily_delta_gal?.toFixed(2) }} {{ t.days_remaining >= 9999 ? '∞' : t.days_remaining?.toFixed(2) }} {{ t.status }}

🎯 Stability Score

Limiting Tank
{{ results.stability_score.limiting_tank }}
Limiting Days
{{ results.stability_score.limiting_days?.toFixed(2) }} days
Target Days
{{ results.stability_score.target_days }}
Score
{{ results.stability_score.score_pct?.toFixed(1) }} / 100
Rating
{{ results.stability_score.rating }}

πŸ“‘ Realtime β€” Day view

⚠️ {{ item.message }}