DFA Advanced Operations Module

Project End of Day Volume

Projects the total gas volume expected by the end of the contract day, assuming the current flow rate continues until the contract hour.

Formula

Current Day Volume + [(% of day remaining until contract hour) × Current Flow Rate]

Example

Contract hour = midnight
Current Day Volume = 946 mcf (at 9:36 PM)
Flow Rate = 1,200 mcf/day

There are 2.4 hours left in the day → 2.4 / 24 = 10%.

So: 946 + (0.10 × 1,200) = 946 + 120 = 1,066 mcf projected.

Inputs

Current Day Volume — tag holding today’s accumulated volume (resets at the contract hour).
Flow Rate — tag holding the current flow rate (mcf/day).
Contract Hour — hour (0–23) when daily volumes roll over.
Output Tag — where the projected end-of-day value is written.

Projected EOD (Rate)

Projects the end-of-day volume based on the current accumulation rate. Instead of using a flow tag, it derives the rate from how much volume has accumulated since the contract hour.

Formula

(MCF Today ÷ Hours Since Contract Hour) × 24

Hours Since Contract Hour is calculated from the MCF Today tag's value timestamp, so the projection reflects when the value was last updated, not when the calculation runs.

Fields

  • MCF Today — tag containing the volume accumulated so far today.
  • Contract Hour — the hour (0–23) when the gas day resets.
  • Output Tag — where the projected value is written.
 
Note: at or very near the contract hour (elapsed time ~0), the calculation cannot produce a meaningful rate and the bad-quality behavior applies.

Net Diff (Proj vs 7-Day Avg)

Calculates the difference between today's projected volume and the 7-day average, showing whether the meter is running above or below its recent trend.

Formula

Projected MCF Today − 7-Day Avg MCF Yesterday

Fields

  • Projected MCF Today — tag with today’s projected volume.
  • 7-Day Avg MCF Yesterday — tag with the 7-day average (provided by an external history script, not computed by this module).
  • Output Tag — where the difference is written. Positive = above average; negative = below.

Multi-Tag Average

Averages the current values of two or more tags into a single output.

Formula

(Tag1 + Tag2 + … + TagN) ÷ N

Fields

  • Tags to Average (1–6) — up to six tag paths. Blank fields are ignored; at least two tags are recommended.
  • Output Tag — where the average is written.
 
If any input tag has bad quality, the operation does not compute a partial average — the bad-quality behavior applies to the whole operation.