The miller's tally

Logging interval calculator

A monitoring device logs its readings at an interval set in its software, and a remote portal or a database keeps them. Enter that interval and the tally counts how many records it makes in an hour, a day, the days you choose and a year, plus their storage if you know the size of one record. Every result is an estimate from the numbers you enter.

At the mill: the miller chalks the pond level on the slate at set times. The shorter the time between marks, the faster the slate fills.

The interval, from your own logging settings

From 1 second to one day. Use the figure from your own settings; the page opens with 5 minutes as an example.

What to count

Only if you know it from your own logs or the software's documentation. Leave it empty to skip storage.

Estimate for the example: a value logged every 5 minutes gives 288 records a day.

Records an hour
12
Records a day
288
Records in 30 days
8,640
Records in a 365-day year
105,120
Storage a day
–
Storage for the days counted
–

Add the size of one record to see storage.

  1. 5 min × 60 = 300 s
  2. 86,400 s ÷ 300 s = 288 records a day
  3. 3,600 s ÷ 300 s = 12 records an hour
  4. 288 × 30 days = 8,640 records
  5. 288 × 365 days = 105,120 records a year

The formulas

  • Interval in seconds = minutes × 60, or hours × 3,600
  • Records a day = 86,400 ÷ interval in seconds
  • Records an hour = 3,600 ÷ interval in seconds
  • Records in N days = records a day × N
  • Records a year = records a day × 365
  • Storage = records × bytes per record; 1 kB = 1,000 bytes, 1 MB = 1,000,000, 1 GB = 10⁹, 1 TB = 10¹²

A minute is 60 seconds, an hour 3,600 seconds and a day 86,400 seconds, so dividing a day by the interval gives the number of intervals in it: one record per interval.

What the estimate assumes

  • One record is written at every interval, with none missed, doubled or held back while a connection is down.
  • A day is 86,400 seconds and a year is 365 days. A leap year has one day more, and a day with a leap second one second more.
  • When the interval does not divide a day evenly the counts are not whole numbers. They are rounded and marked "≈"; a real log holds a whole number of records close to them, depending on when logging started.
  • The tally does not know any device's or portal's interval or record size. Read the interval from your own settings and the record size from your own logs or the software's documentation.
  • Storage is records times the size you enter. Real storage also holds file, database and index overhead, and compression can make it smaller. Software that counts 1,024 bytes to a kilobyte shows smaller figures than these.
  • Inputs it accepts (these are this tally's own limits): an interval from 1 second to one day, 1 to 3,660 whole days, and an optional record size above 0 and up to 1,000,000 bytes.

Sources

  1. The International System of Units (SI), SI Brochure, 9th edition, Bureau International des Poids et Mesures (BIPM): non-SI units accepted for use with the SI, minute = 60 s, hour = 3,600 s, day = 86,400 s
  2. NIST Special Publication 811: Guide for the Use of the International System of Units (SI), National Institute of Standards and Technology: the same minute, hour and day
  3. Metric (SI) Prefixes, National Institute of Standards and Technology: kilo = 1,000, mega = 1,000,000, giga = 1,000,000,000, tera = 10¹²

Nothing you type is stored or sent anywhere; the sums run in your browser.