How every number in Vari is calculated
Vari records what you log. It does not give medical advice.
Vari never recommends a fluid or sodium target for a medical condition. Your clinician sets the numbers; Vari counts them.
© 2026 Vari. Not a medical device. Vari does not diagnose, treat or prevent any condition.
Every figure on this page is worked out on your device, from what you log.
Version 2026-11
Salt and sodium
Vari stores sodium in whole milligrams and converts salt to sodium with a single factor. The same factor is used in the app and in every converter on this site.
| What it is | What Vari uses |
|---|---|
| Conversion | 1 g of salt contains 393 mg of sodium. |
| Sodium by mass of salt | 39.3% |
| Stored as | integer mg sodium |
| Salt to sodium | Math.round(g × sodium_mg_per_g_salt) |
| Sodium to salt | mg / sodium_mg_per_g_salt |
| A sodium amount you type | shown exactly |
| A sodium amount worked out from salt | a mg value derived from salt g is shown to the nearest 10 mg |
| 1.0 g salt | 393 mg sodium |
| 6.0 g salt | 2,358 mg sodium → 2,360 mg sodium |
| 2.5 g salt | 983 mg sodium → 980 mg sodium |
| 10.0 g salt | 3,930 mg sodium |
| 2,000 mg sodium | 2,000 mg sodium → 5.1 g salt |
| 2,300 mg sodium | 2,300 mg sodium → 5.9 g salt |
| 2,500 mL | 2,500 mL → 85 fl oz |
| 64 fl oz | 1,893 mL → 1,893 mL / 1.9 L |
Notes
- Each shared vector below reads: what was logged, then what Vari stores, then what it shows.
- 22.99 / 58.44 = 39.3% sodium by mass of NaCl
- every sodium number is labelled sodium or salt; a bare g never appears
- CCR-MOB-02: test vector row 1 states the exact factor in mg sodium, which the nearest-10 rule would round down. In force: the rule as written: row 1 is displayed as the exact constant, not as a derived value.
Units and volumes
Fluid is stored in milliliters and converted only for display, so the unit you are reading in never changes what is kept.
| What it is | What Vari uses |
|---|---|
| Fluid stored as | integer mL |
| One US fluid ounce | 29.5735295625 mL |
| One liter | 1,000 mL |
| A UK fluid ounce | 28.41 mL |
| mL | decimal places: 0 |
| L | decimal places: 1 |
| fl oz | decimal places: 0 |
| mg sodium | decimal places: 0 |
| g salt | decimal places: 1 |
| US | mg sodium · fl oz |
| Raw volume | fluid_ml: the volume as logged. Counts on every path except general hydration. |
| Effective volume | effective_fluid_ml: fluid_ml × the drink's hydration factor. Counts on the general hydration path only. |
| Hydration factors | /science/hydration-index |
| Fluid steps | 100 mL · 1 fl oz |
| Sodium steps | 0.5 g salt (200 mg sodium) · 50 mg sodium |
| Days imported from the older app | not tracked |
Notes
- a UK fluid ounce is not offered; fl oz is US customary
- one rule, not copy: sodiumUnit = profile.units.sodium ?? MARKET_DEFAULTS[market].sodiumUnit. In the app the fluid default is then narrowed by the device measurement system; only us keeps fl_oz.
- tapping the number lets a value be typed
- sodium is not evaluated on a legacy (1.x) day and is never shown as 0 mg
When a day starts
A Vari day runs from midnight to midnight, local time. Every dated record stores the local day it belongs to.
| What it is | What Vari uses |
|---|---|
| A day starts at | 00:00 |
| You can change it | no |
| Earlier entries are re-assigned | no |
Notes
- every dated record stores local_day; in Vari 2.0 the day starts at local midnight and the start cannot be changed
- INV-21 · B-TG-02
Targets and met
A target has a direction and a value. Whether a day counts as met follows from the direction alone. Your clinician sets the value; Vari counts against it.
| What it is | What Vari uses |
|---|---|
| At least | the day's total is ≥ value |
| At most | the day's total is ≤ value |
| None | not evaluated |
| The version that applies | the Target version where effective_from ≤ local_day and effective_to is absent or ≥ local_day |
| Which fluid total is used | the day's fluid total uses the fluid_basis of the version in force that day: raw fluid_ml, or effective_fluid_ml on the general path |
| Which days are counted | a day counts only if a target was in force and the day has at least one intake entry |
| Days with nothing logged | reported separately as no entries on N days |
| Fluid double-check range | 0.5 L to 6.0 L |
| Sodium double-check range | 500 mg sodium to 15,000 mg sodium |
| Outside that range | shows a double-check message |
| Saving is blocked | no |
Notes
- INV-27: a double-check message never stops an entry being saved.
The general-hydration goal
The current Vari app does not calculate a target: you enter your own. Goals carried over from the first version of Vari keep the general-hydration formula below, which uses body weight and an activity level and nothing else.
| What it is | What Vari uses |
|---|---|
| Fluid per kilogram of body weight | 33 mL per kg |
| Sedentary | ×1.00 |
| Moderate | ×1.15 |
| Active | ×1.30 |
| Athlete | ×1.50 |
| Rounded to | 100 mL |
| Formula | Math.round(weight_kg × 33 × activity_factor / 100) × 100, in mL per day |
| Applies to | general_hydration · fluid |
| Where the target comes from | app_calculated |
| Condition modifiers | no |
Notes
- no condition modifier of any kind is applied, and no code path computes a fluid or sodium number from a condition (INV-01).
Pace
Planned for a later version: the current Vari app does not have this yet. Pace compares the running total so far against a straight line across the waking hours. It is a reading of the day, not an instruction.
| What it is | What Vari uses |
|---|---|
| Expected curve | linear |
| Window | wake time to bedtime minus 2 h |
| Behind means | behind means the actual total is below the expected total by more than PACE_BEHIND_TOLERANCE × target |
| Tolerance | 10% |
| No pace for | At most |
| Nudges a day, at most | 3 |
| Never within | 2 hours of bedtime |
| Sent in quiet hours | no |
Notes
- INV-12: the nudge limits hold whatever else is happening in the day.
Symptom scores
Planned for a later version: the current Vari app does not have this yet. Symptom sliders run from none to worst. A symptom that was not rated is absent, not a zero, so an unlogged symptom never drags an average down.
| What it is | What Vari uses |
|---|---|
| Symptom scale | 0 (none) to 10 (worst) |
| An unrated symptom | an unlogged symptom is stored as absent; an explicit 0 exists only when the slider is set to 0 or all others are marked as none |
| Counted as zero | no |
| A day's symptom score | the mean, across the day's check-ins, of each check-in's mean rated value; null ratings are excluded, and a day with no rated check-in has no burden |
| Overall scale | 1 (Good) to 5 (Very bad) |
| Direction | 1 = good … 5 = very bad |
| A day's overall score | the mean of CheckIn.overall across the day's check-ins |
Notes
- INV-05 · U14
Insights
Insights describe what your own entries show across a recent window. They are descriptive only: Vari does not claim that one thing causes another. In the current app, Insights is built from your intake entries and, with your permission, Apple Health data, and has no check-ins; the qualifying-day rule and thresholds below are the planned rules for the version that adds check-ins.
| What it is | What Vari uses |
|---|---|
| Window | 30 complete days, ending yesterday |
| Today is included | no |
| A qualifying day | a local day with at least one check-in and at least one intake entry |
| Days needed for an insight | 14 |
| Days needed in each group | 4 |
| Days needed for a trend | 14 |
| Morning | day boundary to 12:00 |
| Afternoon | 12:00 to 17:00 |
| Evening | 17:00 to the next day boundary |
| Days needed in a bucket | 4 |
| Buckets shown, at least | 2 |
Notes
- today is partial, so it is excluded
Flow Score (general hydration)
Flow Score is a single general-hydration reading, built from weighted components.
| What it is | What Vari uses |
|---|---|
| Hydration | 0.30 |
| Caffeine | 0.25 |
| Timing | 0.15 |
| Activity | 0.10 |
| Consistency | 0.10 |
| Recovery | 0.10 |
| Total | 1 |
| Re-weighted when caffeine is absent | yes |
| Applies to | general_hydration |
Notes
- The weights add up to the total above; when caffeine is not logged, the remaining components are re-weighted so they still add up to it.
The clinic report
Planned for a later version: the current Vari app does not have this yet. The clinic report is built on the device from entries that were logged there. Nothing is sent anywhere to make it.
| What it is | What Vari uses |
|---|---|
| Pages | 1 |
| Printed as | Page 1 of 1 |
| Made on the device | yes |
| Trend | the second-half mean of the day values minus the first-half mean |
| Split | at the range midpoint |
| Threshold | ±0.3 |
| Rising | ≥ +0.3 |
| Falling | ≤ −0.3 |
| Flat | otherwise |
| Rated days needed in each half | 2 |
| A cell with no data | — |
| Legend | higher = more severe |
| By then | the cumulative raw intake of that local day up to the episode's occurred_at |
| Episodes listed, at most | 6 |
| Questions listed, at most | 6 |
| Report compliance footer | All values were entered by the patient or read from Apple Health. Vari does not diagnose, treat or recommend targets. Conversion used: 1 g salt = 393 mg sodium. Method notes at getvari.app/methodology. |
| Report branding | Made with Vari · getvari.app |
Preset values
Presets are starting values for the usual sources of sodium. Each row says where its figure comes from, and you can replace any of them with what your own package says.
| What it is | What Vari uses |
|---|---|
| Salt tablet (1 g NaCl) | 1 g salt → 393 mg sodium · label |
| ¼ tsp table salt | 581 mg sodium · typical |
| Broth / bouillon | 800 mg sodium · typical |
| LMNT (1 stick in water) | 1,000 mg sodium · typical |
| Label | read from the package label, or an exact conversion |
| Typical | a seed figure, until the row is checked against a label |
| User | entered or edited by the user |
| A teaspoon of table salt | 2,325 mg sodium |
| Checked against a current label on | to be confirmed before launch |
| An edit applies to later entries only | yes |
Notes
- from label — check your package
- Math.round(2325 / 4) = 581 mg sodium
- U20: each row is checked against a current US label
- This converts a number you already have. It does not suggest a target — that comes from your clinician.
Say it
Planned for a later version: the current Vari app does not have this yet. Say it turns a spoken phrase into an entry on the device. The parser is deterministic, and nothing is written until you confirm it.
| What it is | What Vari uses |
|---|---|
| Runs on the device only | yes |
| Parser | deterministic |
| Uses a model | no |
| Saved without confirmation | no |
| Test phrases | 200 |
| Field accuracy | to be confirmed before launch |
| Measured on | to be confirmed before launch |
Sources
The citation behind every constant that is not plain arithmetic.
| What it is | What Vari uses |
|---|---|
| general_goal.ml_per_kg = 33 | Institute of Medicine, Dietary Reference Intakes for Water, Potassium, Sodium, Chloride and Sulfate (2004) (hydration-mobile/src/services/goals.ts) |
| salt_sodium.sodium_mg_per_g_salt | molar mass of sodium 22.99 g/mol and of NaCl 58.44 g/mol, giving 39.3% sodium by mass |
| presets.usda_tsp_table_salt_sodium_mg = 2325 | USDA FoodData Central, table salt (1 tsp = 2,325 mg sodium) |
| units.ml_per_us_fl_oz = 29.5735295625 | US customary fluid ounce, exact definition |
| units.effective_volume.hydration_factor_range | the hydration-factor table published on the website (/science/hydration-index) |
Change log
Every methodology version, with its date and what moved in it.
| What it is | What Vari uses |
|---|---|
| 2026-11 · to be confirmed before launch | First 2.0 methodology version: units and conversion, the day boundary, targets and the hit rule, pace, insights, the general-hydration goal, symptom scores, Flow Score, the clinic report, presets and Say it. |