---
cid: po.bp.dca.diagnostics.analysis
hub: dca
tags: [decline, diagnostics, Bourdet, derivative, beta, b-factor, flow-regime, linear-flow, rate-transient, normalized-rate, flowing-material-balance, contacted-volume]
facets: { discipline: production, property: rate, model: arps, method-type: analytical }
title: Decline and Flow-Regime Diagnostics
summary: "Which flow regime a well is in, from when an Arps forecast holds, and how much oil it has contacted so far, from its rates and pressures."
slug: po.dca.diagnostics.analysis
type: worksheet
---

# Decline and Flow-Regime Diagnostics

## Description

Which flow regime is the well in, from when does an Arps forecast hold, and how much oil has it contacted so far? You enter a well's monthly rates and flowing pressures with the reservoir's initial pressure and total compressibility. You read off the regime month by month from the trend of the loss-ratio exponent b(t), the month from which Arps applies, the contacted oil in place from the flowing material balance, and the slope of the linear-flow √t line.

**Parameters:**
- **Reservoir**: the initial reservoir pressure `DDG_Pi` (psi) and the total compressibility `DDG_Ct` (1/psi)
- **Derivatives**: the smoothing window `DDG_L`, in natural-log cycles of time; a neighbour must lie at least this far from a month to enter its derivative
- **Lines**: the least R² a straight-line fit should reach, `DDG_R2Min`
- **Regime table**: the b(t) each regime is read from, ascending (boundary-dominated from 0, transition from 1, linear flow from 1.5, bilinear flow from 3)
- **Months**: the oil rate (STB/d) and flowing pressure (psi) of each of 24 months

**How to use it:** Compute monthly rates as each month's volume over its days on production, type the bottomhole flowing pressure of each month (gauge or computed from the wellhead), and take out shut-in and partial months first (the Production Data Cleaning sheet). A noisy history needs a wider smoothing window; read b(t) over several months, not one. Check that the late-time regime is boundary-dominated and that the two straight lines reach the least R². Three charts draw the rate and its derivative on log-log axes, the Agarwal-Gardner plot with its line, and Δp/q against √t.

**Method:** The sheet reads the history three ways. The decline diagnostics take the Bourdet rate derivative, β = t·D and the loss-ratio exponent b(t) at each month, and read b(t) against the flow-regime table month by month: bilinear, linear, transition or boundary-dominated. The rate-transient variables are the normalized rate q/Δp, the material-balance time Np/q and the normalized cumulative Np/Δp. Two straight lines are then fitted where the reading says they belong: the flowing material balance over the boundary-dominated months, which gives the contacted oil in place, and the √t line over the linear-flow months.

Time is in months for the derivatives and in days (× 365.25/12) for the rate-transient variables. The Bourdet derivative dq/dt at a month uses the nearest neighbours at least L ln-cycles away on each side; −t·dq/dt is plotted beside q on log-log axes, where in a power-law transient q ∝ t^(−β) the two run parallel β apart. β = t·D with D = −(dq/dt)/q, and b(t) = d(1/D)/dt, the loss ratio's derivative. In transient flow b = 1/β: 2 in linear flow, 4 in bilinear; in boundary-dominated flow b falls to Arps's 0 to 1 and β rises past 0.5. A month reads as the last regime in the table whose "b from" its b(t) reaches; the first and last two months, whose second derivative is one-sided, aren't read, and a negative b(t) reads as noise. The late-time b is the median of months 13 to 22. Np is cumulated month by month as each month's rate times its days; tc = Np/q. The flowing material balance fits (pi − pwf)/q against tc over the months from the first boundary-dominated one, and the contacted oil in place is 1/(slope·ct); its intercept is bpss. The linear-flow line is a least-squares line (Excel's LINEST) of (pi − pwf)/q against √t over the months read as linear flow.

**Example:** The default case is a tight-oil horizontal well in the decline family's play whose first 24 months fall from 577.4 to 114.8 STB/d, produced at a constant 1,000 psi from a 5,000 psi reservoir, with a total compressibility of 1.5 × 10⁻⁵ 1/psi. Its rates are synthetic: the transient hyperbolic model (qi = 1,000 STB/d, Di = 1/month, bi = 2, bf = 0.5, end of linear flow at month 3) to a tenth of a barrel. The reference well of the Arps and model-comparison sheets is an Arps hyperbolic from its first month with a ±4 % scatter, which a second derivative can't read; this well passes through the regimes the diagnostics are for. The smoothing window is 0.3 ln-cycles and the least R² 0.98.

b(t) reads 1.88, 1.81, 1.79, 1.74 and 1.56 at months 3 to 7, linear flow; 1.39, 1.21 and 1.05 at months 8 to 10, the transition; and 0.98 from month 11, boundary-dominated, through month 22. The late-time median is 0.64, within 0 to 1, so an Arps forecast holds from month 11. β over the same months is 0.47 to 0.52 in linear flow and rises to 0.86 by month 22. The normalized rate falls from 577.4/4,000 = 0.1444 to 114.8/4,000 = 0.0287 STB/d/psi. Over months 11 to 24 the flowing material balance has a slope of 0.016567 psi/(STB/d) per day, so the contacted oil in place is 1/(0.016567 × 1.5 × 10⁻⁵) = 4.02 MMSTB, with bpss = 11.29 psi/(STB/d) and R² = 0.9997. Over every month, linear flow included, it would be 3.57 MMSTB: transient months pull the volume down. The five linear-flow months lie on Δp/q = 1.154 + 0.9842·√t (R² 0.9999).

## Validity

Derivatives amplify noise, and b(t) is a second derivative: on real monthly data it scatters by more than its regime bands, which is why the sheet reads it over months and takes a late-time median. The end months are one-sided and not read. The reading assumes a constant or slowly varying flowing pressure; a pressure change moves the rate without a change of regime, which the normalized rate corrects. The flowing material balance needs boundary-dominated flow, a slightly compressible undersaturated oil and a constant compressibility; its contacted volume grows while the drainage area still grows, so on a tight well it is a lower bound to date. The √t slope gives xf·√k once the formation volume factor, viscosity, porosity and net pay are known (Wattenbarger et al., 1998); the sheet stops at the slope. The default flowing pressure is constant, so the normalized rate here is the rate over a fixed 4,000 psi. The sheet has no Blasingame type-curve match; it computes the normalized-rate variables such a match needs.

Named alternatives: the semi-log Bourdet derivative for the derivative per ln-cycle; the Production Data Cleaning sheet before the diagnostics; the Modified Hyperbolic Decline sheet while the well is still transient; the Decline Model Auto-Fit sheet to fit the months the reading accepts; a tank material balance with measured average pressures.

## References

- Bourdet, D., Ayoub, J.A. and Pirard, Y.M. (1989). "Use of Pressure Derivative in Well-Test Interpretation." *SPE Formation Evaluation* 4(2), 293–302.
- Fulford, D.S. and Blasingame, T.A. (2013). "Evaluation of Time-Rate Performance of Shale Wells Using the Transient Hyperbolic Relation." SPE-167242 (b(t), β and the transient hyperbolic model).
- Agarwal, R.G., Gardner, D.C., Kleinsteiber, S.W. and Fussell, D.D. (1999). "Analyzing Well Production Data Using Combined-Type-Curve and Decline-Curve Analysis Concepts." *SPE Reservoir Evaluation & Engineering* 2(5), 478–486.
- Mattar, L. and Anderson, D. (2005). "Dynamic Material Balance (Oil or Gas-in-Place Without Shut-Ins)." CIPC 2005-113.
- Wattenbarger, R.A., El-Banbi, A.H., Villegas, M.E. and Maggard, J.B. (1998). "Production Analysis of Linear Flow Into Fractured Tight Gas Wells." SPE-39931 (the √t plot).
- Palacio, J.C. and Blasingame, T.A. (1993). "Decline-Curve Analysis Using Type Curves: Analysis of Gas Well Production Data." SPE-25909 (material-balance time).

## Functions used

`PO.DCA.Diag.Bourdet`, `PO.DCA.Diag.Beta`, `PO.DCA.Diag.bParam`, `PO.RTA.NormalizedRate`, `PO.RTA.FlowingMB`

## Spreadsheet: DcaDiagnosticsAnalysis

|    | A                                                                                                                                                                                                       | B                                                                                                                                       | C                                                                                                                                                                                                                                                                                                                              | D            | E                    | F                    | G                                      | H                  | I                 | J          | K                                                | L                                        | M                                          | N                                                                      |
|----|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|--------------|----------------------|----------------------|----------------------------------------|--------------------|-------------------|------------|--------------------------------------------------|------------------------------------------|--------------------------------------------|------------------------------------------------------------------------|
| 1  | Decline and Flow-Regime Diagnostics                                                                                                                                                                     |                                                                                                                                         | Petroleum Office                                                                                                                                                                                                                                                                                                               |              |                      |                      |                                        |                    |                   |            |                                                  |                                          |                                            |                                                                        |
| 2  | Blue cells on yellow are inputs. Type the well's monthly rates and flowing pressures; the derivatives read the flow regime month by month, and the rate-transient lines follow.                         |                                                                                                                                         |                                                                                                                                                                                                                                                                                                                                |              |                      |                      |                                        |                    |                   |            |                                                  |                                          |                                            |                                                                        |
| 3  | Reservoir and Diagnostic Settings                                                                                                                                                                       |                                                                                                                                         |                                                                                                                                                                                                                                                                                                                                |              |                      |                      |                                        |                    |                   |            |                                                  |                                          |                                            |                                                                        |
| 4  | Initial reservoir pressure                                                                                                                                                                              | 5000                                                                                                                                    | psi                                                                                                                                                                                                                                                                                                                            |              |                      |                      |                                        |                    |                   |            |                                                  |                                          |                                            |                                                                        |
| 5  | Total compressibility                                                                                                                                                                                   | 0.000015                                                                                                                                | 1/psi                                                                                                                                                                                                                                                                                                                          |              |                      |                      |                                        |                    |                   |            |                                                  |                                          |                                            |                                                                        |
| 6  | Derivative smoothing window, ln-cycles of time                                                                                                                                                          | 0.3                                                                                                                                     | —                                                                                                                                                                                                                                                                                                                              |              |                      |                      |                                        |                    |                   |            |                                                  |                                          |                                            |                                                                        |
| 7  | Least R² a straight-line fit should reach                                                                                                                                                               | 0.98                                                                                                                                    | —                                                                                                                                                                                                                                                                                                                              |              |                      |                      |                                        |                    |                   |            |                                                  |                                          |                                            |                                                                        |
| 9  | Flow Regimes, b(t) Read Against the Regime Table                                                                                                                                                        |                                                                                                                                         |                                                                                                                                                                                                                                                                                                                                |              |                      |                      |                                        |                    |                   |            |                                                  |                                          |                                            |                                                                        |
| 10 | Months read as linear flow                                                                                                                                                                              | =COUNTIF(DDG_Regime,"Linear flow")                                                                                                      | —                                                                                                                                                                                                                                                                                                                              |              |                      |                      |                                        |                    |                   |            |                                                  |                                          |                                            |                                                                        |
| 11 | Last month read as linear flow                                                                                                                                                                          | =MAXIFS(DDG_T,DDG_Regime,"Linear flow")                                                                                                 | month                                                                                                                                                                                                                                                                                                                          |              |                      |                      |                                        |                    |                   |            |                                                  |                                          |                                            |                                                                        |
| 12 | Months read as boundary-dominated                                                                                                                                                                       | =COUNTIF(DDG_Regime,"Boundary-dominated")                                                                                               | —                                                                                                                                                                                                                                                                                                                              |              |                      |                      |                                        |                    |                   |            |                                                  |                                          |                                            |                                                                        |
| 13 | First month read as boundary-dominated                                                                                                                                                                  | =MINIFS(DDG_T,DDG_Regime,"Boundary-dominated")                                                                                          | month                                                                                                                                                                                                                                                                                                                          |              |                      |                      |                                        |                    |                   |            |                                                  |                                          |                                            |                                                                        |
| 14 | Late-time b(t), median of months 13 to 22                                                                                                                                                               | =MEDIAN(M58:M67)                                                                                                                        | —                                                                                                                                                                                                                                                                                                                              |              |                      |                      |                                        |                    |                   |            |                                                  |                                          |                                            |                                                                        |
| 15 | Late-time β, median of months 13 to 22                                                                                                                                                                  | =MEDIAN(L58:L67)                                                                                                                        | —                                                                                                                                                                                                                                                                                                                              |              |                      |                      |                                        |                    |                   |            |                                                  |                                          |                                            |                                                                        |
| 16 | Rate-Transient Lines                                                                                                                                                                                    |                                                                                                                                         |                                                                                                                                                                                                                                                                                                                                |              |                      |                      |                                        |                    |                   |            |                                                  |                                          |                                            |                                                                        |
| 17 | Contacted oil in place                                                                                                                                                                                  | =PO.RTA.FlowingMB(FILTER(DDG_Np,DDG_T>=DDG_TBdf),FILTER(DDG_Q,DDG_T>=DDG_TBdf),DDG_Pi,FILTER(DDG_Pwf,DDG_T>=DDG_TBdf),DDG_Ct)/1000/1000 | MMSTB                                                                                                                                                                                                                                                                                                                          |              |                      |                      |                                        |                    |                   |            |                                                  |                                          |                                            |                                                                        |
| 18 | Contacted oil in place, every month                                                                                                                                                                     | =PO.RTA.FlowingMB(DDG_Np,DDG_Q,DDG_Pi,DDG_Pwf,DDG_Ct)/1000/1000                                                                         | MMSTB                                                                                                                                                                                                                                                                                                                          |              |                      |                      |                                        |                    |                   |            |                                                  |                                          |                                            |                                                                        |
| 19 | Flowing material balance intercept, b_pss                                                                                                                                                               | =INTERCEPT(FILTER(DDG_InvNp,DDG_T>=DDG_TBdf),FILTER(DDG_Tc,DDG_T>=DDG_TBdf))                                                            | psi/(STB/d)                                                                                                                                                                                                                                                                                                                    |              |                      |                      |                                        |                    |                   |            |                                                  |                                          |                                            |                                                                        |
| 20 | Flowing material balance R²                                                                                                                                                                             | =RSQ(FILTER(DDG_InvNp,DDG_T>=DDG_TBdf),FILTER(DDG_Tc,DDG_T>=DDG_TBdf))                                                                  | —                                                                                                                                                                                                                                                                                                                              |              |                      |                      |                                        |                    |                   |            |                                                  |                                          |                                            |                                                                        |
| 21 | Linear-flow slope, Δp/q against √t (LINEST)                                                                                                                                                             | =INDEX(LINEST(FILTER(DDG_InvNp,DDG_Regime="Linear flow"),FILTER(DDG_RootT,DDG_Regime="Linear flow")),1)                                 | psi/(STB/d)/√day                                                                                                                                                                                                                                                                                                               |              |                      |                      |                                        |                    |                   |            |                                                  |                                          |                                            |                                                                        |
| 22 | Linear-flow intercept                                                                                                                                                                                   | =INDEX(LINEST(FILTER(DDG_InvNp,DDG_Regime="Linear flow"),FILTER(DDG_RootT,DDG_Regime="Linear flow")),2)                                 | psi/(STB/d)                                                                                                                                                                                                                                                                                                                    |              |                      |                      |                                        |                    |                   |            |                                                  |                                          |                                            |                                                                        |
| 23 | Linear-flow R²                                                                                                                                                                                          | =RSQ(FILTER(DDG_InvNp,DDG_Regime="Linear flow"),FILTER(DDG_RootT,DDG_Regime="Linear flow"))                                             | —                                                                                                                                                                                                                                                                                                                              |              |                      |                      |                                        |                    |                   |            |                                                  |                                          |                                            |                                                                        |
| 24 | Flow regime check                                                                                                                                                                                       | =IF(DDG_BLate<=INDEX(DDG_BFrom,2),"PASS","WARN")                                                                                        | =IF(DDG_BLate<=INDEX(DDG_BFrom,2),"late-time b = "&TEXT(DDG_BLate,"0.00")&", boundary-dominated from month "&DDG_TBdf&": an Arps forecast with b at or below 1 holds from there","late-time b = "&TEXT(DDG_BLate,"0.00")&" is above "&INDEX(DDG_BFrom,2)&": the well is still transient; forecast it with a terminal decline") |              |                      |                      |                                        |                    |                   |            |                                                  |                                          |                                            |                                                                        |
| 25 | Flowing material balance check                                                                                                                                                                          | =IF(DDG_FmbR2>=DDG_R2Min,"PASS","WARN")                                                                                                 | =IF(DDG_FmbR2>=DDG_R2Min,"the line is straight from month "&DDG_TBdf&" (R² "&TEXT(DDG_FmbR2,"0.0000")&"), "&TEXT(DDG_OOIP,"0.00")&" MMSTB contacted so far","the line bends from month "&DDG_TBdf&" (R² "&TEXT(DDG_FmbR2,"0.0000")&"): the months aren't boundary-dominated yet")                                              |              |                      |                      |                                        |                    |                   |            |                                                  |                                          |                                            |                                                                        |
| 26 | Linear flow check                                                                                                                                                                                       | =IF(DDG_LinR2>=DDG_R2Min,"PASS","WARN")                                                                                                 | =IF(DDG_LinR2>=DDG_R2Min,"the "&DDG_NLinear&" linear-flow months lie on a √t line (R² "&TEXT(DDG_LinR2,"0.0000")&")","the linear-flow months bend off the √t line (R² "&TEXT(DDG_LinR2,"0.0000")&"): check the regime reading")                                                                                                |              |                      |                      |                                        |                    |                   |            |                                                  |                                          |                                            |                                                                        |
| 28 | Flow-Regime Table                                                                                                                                                                                       |                                                                                                                                         |                                                                                                                                                                                                                                                                                                                                |              |                      |                      |                                        |                    |                   |            |                                                  |                                          |                                            |                                                                        |
| 29 | A month reads as the last regime whose b from it reaches. In transient flow q falls as t^(−β), so b = 1/β: 2 in linear flow, 4 in bilinear.                                                             |                                                                                                                                         |                                                                                                                                                                                                                                                                                                                                |              |                      |                      |                                        |                    |                   |            |                                                  |                                          |                                            |                                                                        |
| 30 | In boundary-dominated flow b falls to the Arps exponent, 0 to 1, and β rises past 0.5 towards 1/b.                                                                                                      |                                                                                                                                         |                                                                                                                                                                                                                                                                                                                                |              |                      |                      |                                        |                    |                   |            |                                                  |                                          |                                            |                                                                        |
| 31 | Regime                                                                                                                                                                                                  | b from (—)                                                                                                                              | β expected                                                                                                                                                                                                                                                                                                                     | b expected   |                      |                      |                                        |                    |                   |            |                                                  |                                          |                                            |                                                                        |
| 32 | Boundary-dominated                                                                                                                                                                                      | 0                                                                                                                                       | rising past 0.5                                                                                                                                                                                                                                                                                                                | 0 to 1       |                      |                      |                                        |                    |                   |            |                                                  |                                          |                                            |                                                                        |
| 33 | Transition                                                                                                                                                                                              | 1                                                                                                                                       | 0.5, rising                                                                                                                                                                                                                                                                                                                    | 1 to 1.5     |                      |                      |                                        |                    |                   |            |                                                  |                                          |                                            |                                                                        |
| 34 | Linear flow                                                                                                                                                                                             | 1.5                                                                                                                                     | about 0.5                                                                                                                                                                                                                                                                                                                      | about 2      |                      |                      |                                        |                    |                   |            |                                                  |                                          |                                            |                                                                        |
| 35 | Bilinear flow                                                                                                                                                                                           | 3                                                                                                                                       | about 0.25                                                                                                                                                                                                                                                                                                                     | about 4      |                      |                      |                                        |                    |                   |            |                                                  |                                          |                                            |                                                                        |
| 37 | Agarwal-Gardner Line                                                                                                                                                                                    |                                                                                                                                         |                                                                                                                                                                                                                                                                                                                                |              |                      |                      |                                        |                    |                   |            |                                                  |                                          |                                            |                                                                        |
| 38 | End                                                                                                                                                                                                     | Np/Δp (STB/psi)                                                                                                                         | q/Δp (STB/d/psi)                                                                                                                                                                                                                                                                                                               |              |                      |                      |                                        |                    |                   |            |                                                  |                                          |                                            |                                                                        |
| 39 | At the first boundary-dominated month                                                                                                                                                                   | =INDEX(DDG_NpDp,DDG_TBdf)                                                                                                               | =(1-B39/DDG_NCt)/DDG_Bpss                                                                                                                                                                                                                                                                                                      |              |                      |                      |                                        |                    |                   |            |                                                  |                                          |                                            |                                                                        |
| 40 | Where q/Δp reaches 0, N·ct                                                                                                                                                                              | =DDG_OOIP*1000*1000*DDG_Ct                                                                                                              | =(1-B40/DDG_NCt)/DDG_Bpss                                                                                                                                                                                                                                                                                                      |              |                      |                      |                                        |                    |                   |            |                                                  |                                          |                                            |                                                                        |
| 42 | The Well's Months, Diagnostics and Rate-Transient Variables                                                                                                                                             |                                                                                                                                         |                                                                                                                                                                                                                                                                                                                                |              |                      |                      |                                        |                    |                   |            |                                                  |                                          |                                            |                                                                        |
| 43 | The rates are synthetic: the transient hyperbolic model in linear flow to month 3, at a constant 1,000 psi. How to use it: monthly volumes over days on production with the measured flowing pressures. |                                                                                                                                         |                                                                                                                                                                                                                                                                                                                                |              |                      |                      |                                        |                    |                   |            |                                                  |                                          |                                            |                                                                        |
| 44 | Time is in months for the derivatives and in days for the rate-transient variables; Np is the sum of each month's rate times its days.                                                                  |                                                                                                                                         |                                                                                                                                                                                                                                                                                                                                |              |                      |                      |                                        |                    |                   |            |                                                  |                                          |                                            |                                                                        |
| 45 | Time (month)                                                                                                                                                                                            | Oil rate (STB/d)                                                                                                                        | Flowing pressure (psi)                                                                                                                                                                                                                                                                                                         | Time (days)  | Cumulative, Np (STB) | MB time, Np/q (days) | q/Δp (STB/d/psi)                       | Δp/q (psi/(STB/d)) | Np/Δp (STB/psi)   | √t (√days) | −t·dq/dt (STB/d)                                 | β (t·D)                                  | b(t)                                       | Flow regime read                                                       |
| 46 | 1                                                                                                                                                                                                       | 577.4                                                                                                                                   | 1000                                                                                                                                                                                                                                                                                                                           | =A46*DDG_DMo | =B46*D46             | =E46/B46             | =PO.RTA.NormalizedRate(B46,DDG_Pi,C46) | =1/G46             | =E46/(DDG_Pi-C46) | =SQRT(D46) | =-A46*PO.DCA.Diag.Bourdet(DDG_T,DDG_Q,A46,DDG_L) | =PO.DCA.Diag.Beta(DDG_T,DDG_Q,A46,DDG_L) | =PO.DCA.Diag.bParam(DDG_T,DDG_Q,A46,DDG_L) | End month, not read                                                    |
| 47 | 2                                                                                                                                                                                                       | 447.2                                                                                                                                   | 1000                                                                                                                                                                                                                                                                                                                           | =A47*DDG_DMo | =E46+B47*(D47-D46)   | =E47/B47             | =PO.RTA.NormalizedRate(B47,DDG_Pi,C47) | =1/G47             | =E47/(DDG_Pi-C47) | =SQRT(D47) | =-A47*PO.DCA.Diag.Bourdet(DDG_T,DDG_Q,A47,DDG_L) | =PO.DCA.Diag.Beta(DDG_T,DDG_Q,A47,DDG_L) | =PO.DCA.Diag.bParam(DDG_T,DDG_Q,A47,DDG_L) | End month, not read                                                    |
| 48 | 3                                                                                                                                                                                                       | 378                                                                                                                                     | 1000                                                                                                                                                                                                                                                                                                                           | =A48*DDG_DMo | =E47+B48*(D48-D47)   | =E48/B48             | =PO.RTA.NormalizedRate(B48,DDG_Pi,C48) | =1/G48             | =E48/(DDG_Pi-C48) | =SQRT(D48) | =-A48*PO.DCA.Diag.Bourdet(DDG_T,DDG_Q,A48,DDG_L) | =PO.DCA.Diag.Beta(DDG_T,DDG_Q,A48,DDG_L) | =PO.DCA.Diag.bParam(DDG_T,DDG_Q,A48,DDG_L) | =IFERROR(INDEX(DDG_Regimes,MATCH(M48,DDG_BFrom,1)),"Noise, b below 0") |
| 49 | 4                                                                                                                                                                                                       | 333.3                                                                                                                                   | 1000                                                                                                                                                                                                                                                                                                                           | =A49*DDG_DMo | =E48+B49*(D49-D48)   | =E49/B49             | =PO.RTA.NormalizedRate(B49,DDG_Pi,C49) | =1/G49             | =E49/(DDG_Pi-C49) | =SQRT(D49) | =-A49*PO.DCA.Diag.Bourdet(DDG_T,DDG_Q,A49,DDG_L) | =PO.DCA.Diag.Beta(DDG_T,DDG_Q,A49,DDG_L) | =PO.DCA.Diag.bParam(DDG_T,DDG_Q,A49,DDG_L) | =IFERROR(INDEX(DDG_Regimes,MATCH(M49,DDG_BFrom,1)),"Noise, b below 0") |
| 50 | 5                                                                                                                                                                                                       | 301.4                                                                                                                                   | 1000                                                                                                                                                                                                                                                                                                                           | =A50*DDG_DMo | =E49+B50*(D50-D49)   | =E50/B50             | =PO.RTA.NormalizedRate(B50,DDG_Pi,C50) | =1/G50             | =E50/(DDG_Pi-C50) | =SQRT(D50) | =-A50*PO.DCA.Diag.Bourdet(DDG_T,DDG_Q,A50,DDG_L) | =PO.DCA.Diag.Beta(DDG_T,DDG_Q,A50,DDG_L) | =PO.DCA.Diag.bParam(DDG_T,DDG_Q,A50,DDG_L) | =IFERROR(INDEX(DDG_Regimes,MATCH(M50,DDG_BFrom,1)),"Noise, b below 0") |
| 51 | 6                                                                                                                                                                                                       | 276.9                                                                                                                                   | 1000                                                                                                                                                                                                                                                                                                                           | =A51*DDG_DMo | =E50+B51*(D51-D50)   | =E51/B51             | =PO.RTA.NormalizedRate(B51,DDG_Pi,C51) | =1/G51             | =E51/(DDG_Pi-C51) | =SQRT(D51) | =-A51*PO.DCA.Diag.Bourdet(DDG_T,DDG_Q,A51,DDG_L) | =PO.DCA.Diag.Beta(DDG_T,DDG_Q,A51,DDG_L) | =PO.DCA.Diag.bParam(DDG_T,DDG_Q,A51,DDG_L) | =IFERROR(INDEX(DDG_Regimes,MATCH(M51,DDG_BFrom,1)),"Noise, b below 0") |
| 52 | 7                                                                                                                                                                                                       | 257.3                                                                                                                                   | 1000                                                                                                                                                                                                                                                                                                                           | =A52*DDG_DMo | =E51+B52*(D52-D51)   | =E52/B52             | =PO.RTA.NormalizedRate(B52,DDG_Pi,C52) | =1/G52             | =E52/(DDG_Pi-C52) | =SQRT(D52) | =-A52*PO.DCA.Diag.Bourdet(DDG_T,DDG_Q,A52,DDG_L) | =PO.DCA.Diag.Beta(DDG_T,DDG_Q,A52,DDG_L) | =PO.DCA.Diag.bParam(DDG_T,DDG_Q,A52,DDG_L) | =IFERROR(INDEX(DDG_Regimes,MATCH(M52,DDG_BFrom,1)),"Noise, b below 0") |
| 53 | 8                                                                                                                                                                                                       | 240.9                                                                                                                                   | 1000                                                                                                                                                                                                                                                                                                                           | =A53*DDG_DMo | =E52+B53*(D53-D52)   | =E53/B53             | =PO.RTA.NormalizedRate(B53,DDG_Pi,C53) | =1/G53             | =E53/(DDG_Pi-C53) | =SQRT(D53) | =-A53*PO.DCA.Diag.Bourdet(DDG_T,DDG_Q,A53,DDG_L) | =PO.DCA.Diag.Beta(DDG_T,DDG_Q,A53,DDG_L) | =PO.DCA.Diag.bParam(DDG_T,DDG_Q,A53,DDG_L) | =IFERROR(INDEX(DDG_Regimes,MATCH(M53,DDG_BFrom,1)),"Noise, b below 0") |
| 54 | 9                                                                                                                                                                                                       | 226.7                                                                                                                                   | 1000                                                                                                                                                                                                                                                                                                                           | =A54*DDG_DMo | =E53+B54*(D54-D53)   | =E54/B54             | =PO.RTA.NormalizedRate(B54,DDG_Pi,C54) | =1/G54             | =E54/(DDG_Pi-C54) | =SQRT(D54) | =-A54*PO.DCA.Diag.Bourdet(DDG_T,DDG_Q,A54,DDG_L) | =PO.DCA.Diag.Beta(DDG_T,DDG_Q,A54,DDG_L) | =PO.DCA.Diag.bParam(DDG_T,DDG_Q,A54,DDG_L) | =IFERROR(INDEX(DDG_Regimes,MATCH(M54,DDG_BFrom,1)),"Noise, b below 0") |
| 55 | 10                                                                                                                                                                                                      | 214.2                                                                                                                                   | 1000                                                                                                                                                                                                                                                                                                                           | =A55*DDG_DMo | =E54+B55*(D55-D54)   | =E55/B55             | =PO.RTA.NormalizedRate(B55,DDG_Pi,C55) | =1/G55             | =E55/(DDG_Pi-C55) | =SQRT(D55) | =-A55*PO.DCA.Diag.Bourdet(DDG_T,DDG_Q,A55,DDG_L) | =PO.DCA.Diag.Beta(DDG_T,DDG_Q,A55,DDG_L) | =PO.DCA.Diag.bParam(DDG_T,DDG_Q,A55,DDG_L) | =IFERROR(INDEX(DDG_Regimes,MATCH(M55,DDG_BFrom,1)),"Noise, b below 0") |
| 56 | 11                                                                                                                                                                                                      | 203                                                                                                                                     | 1000                                                                                                                                                                                                                                                                                                                           | =A56*DDG_DMo | =E55+B56*(D56-D55)   | =E56/B56             | =PO.RTA.NormalizedRate(B56,DDG_Pi,C56) | =1/G56             | =E56/(DDG_Pi-C56) | =SQRT(D56) | =-A56*PO.DCA.Diag.Bourdet(DDG_T,DDG_Q,A56,DDG_L) | =PO.DCA.Diag.Beta(DDG_T,DDG_Q,A56,DDG_L) | =PO.DCA.Diag.bParam(DDG_T,DDG_Q,A56,DDG_L) | =IFERROR(INDEX(DDG_Regimes,MATCH(M56,DDG_BFrom,1)),"Noise, b below 0") |
| 57 | 12                                                                                                                                                                                                      | 192.8                                                                                                                                   | 1000                                                                                                                                                                                                                                                                                                                           | =A57*DDG_DMo | =E56+B57*(D57-D56)   | =E57/B57             | =PO.RTA.NormalizedRate(B57,DDG_Pi,C57) | =1/G57             | =E57/(DDG_Pi-C57) | =SQRT(D57) | =-A57*PO.DCA.Diag.Bourdet(DDG_T,DDG_Q,A57,DDG_L) | =PO.DCA.Diag.Beta(DDG_T,DDG_Q,A57,DDG_L) | =PO.DCA.Diag.bParam(DDG_T,DDG_Q,A57,DDG_L) | =IFERROR(INDEX(DDG_Regimes,MATCH(M57,DDG_BFrom,1)),"Noise, b below 0") |
| 58 | 13                                                                                                                                                                                                      | 183.5                                                                                                                                   | 1000                                                                                                                                                                                                                                                                                                                           | =A58*DDG_DMo | =E57+B58*(D58-D57)   | =E58/B58             | =PO.RTA.NormalizedRate(B58,DDG_Pi,C58) | =1/G58             | =E58/(DDG_Pi-C58) | =SQRT(D58) | =-A58*PO.DCA.Diag.Bourdet(DDG_T,DDG_Q,A58,DDG_L) | =PO.DCA.Diag.Beta(DDG_T,DDG_Q,A58,DDG_L) | =PO.DCA.Diag.bParam(DDG_T,DDG_Q,A58,DDG_L) | =IFERROR(INDEX(DDG_Regimes,MATCH(M58,DDG_BFrom,1)),"Noise, b below 0") |
| 59 | 14                                                                                                                                                                                                      | 174.9                                                                                                                                   | 1000                                                                                                                                                                                                                                                                                                                           | =A59*DDG_DMo | =E58+B59*(D59-D58)   | =E59/B59             | =PO.RTA.NormalizedRate(B59,DDG_Pi,C59) | =1/G59             | =E59/(DDG_Pi-C59) | =SQRT(D59) | =-A59*PO.DCA.Diag.Bourdet(DDG_T,DDG_Q,A59,DDG_L) | =PO.DCA.Diag.Beta(DDG_T,DDG_Q,A59,DDG_L) | =PO.DCA.Diag.bParam(DDG_T,DDG_Q,A59,DDG_L) | =IFERROR(INDEX(DDG_Regimes,MATCH(M59,DDG_BFrom,1)),"Noise, b below 0") |
| 60 | 15                                                                                                                                                                                                      | 166.9                                                                                                                                   | 1000                                                                                                                                                                                                                                                                                                                           | =A60*DDG_DMo | =E59+B60*(D60-D59)   | =E60/B60             | =PO.RTA.NormalizedRate(B60,DDG_Pi,C60) | =1/G60             | =E60/(DDG_Pi-C60) | =SQRT(D60) | =-A60*PO.DCA.Diag.Bourdet(DDG_T,DDG_Q,A60,DDG_L) | =PO.DCA.Diag.Beta(DDG_T,DDG_Q,A60,DDG_L) | =PO.DCA.Diag.bParam(DDG_T,DDG_Q,A60,DDG_L) | =IFERROR(INDEX(DDG_Regimes,MATCH(M60,DDG_BFrom,1)),"Noise, b below 0") |
| 61 | 16                                                                                                                                                                                                      | 159.5                                                                                                                                   | 1000                                                                                                                                                                                                                                                                                                                           | =A61*DDG_DMo | =E60+B61*(D61-D60)   | =E61/B61             | =PO.RTA.NormalizedRate(B61,DDG_Pi,C61) | =1/G61             | =E61/(DDG_Pi-C61) | =SQRT(D61) | =-A61*PO.DCA.Diag.Bourdet(DDG_T,DDG_Q,A61,DDG_L) | =PO.DCA.Diag.Beta(DDG_T,DDG_Q,A61,DDG_L) | =PO.DCA.Diag.bParam(DDG_T,DDG_Q,A61,DDG_L) | =IFERROR(INDEX(DDG_Regimes,MATCH(M61,DDG_BFrom,1)),"Noise, b below 0") |
| 62 | 17                                                                                                                                                                                                      | 152.6                                                                                                                                   | 1000                                                                                                                                                                                                                                                                                                                           | =A62*DDG_DMo | =E61+B62*(D62-D61)   | =E62/B62             | =PO.RTA.NormalizedRate(B62,DDG_Pi,C62) | =1/G62             | =E62/(DDG_Pi-C62) | =SQRT(D62) | =-A62*PO.DCA.Diag.Bourdet(DDG_T,DDG_Q,A62,DDG_L) | =PO.DCA.Diag.Beta(DDG_T,DDG_Q,A62,DDG_L) | =PO.DCA.Diag.bParam(DDG_T,DDG_Q,A62,DDG_L) | =IFERROR(INDEX(DDG_Regimes,MATCH(M62,DDG_BFrom,1)),"Noise, b below 0") |
| 63 | 18                                                                                                                                                                                                      | 146.1                                                                                                                                   | 1000                                                                                                                                                                                                                                                                                                                           | =A63*DDG_DMo | =E62+B63*(D63-D62)   | =E63/B63             | =PO.RTA.NormalizedRate(B63,DDG_Pi,C63) | =1/G63             | =E63/(DDG_Pi-C63) | =SQRT(D63) | =-A63*PO.DCA.Diag.Bourdet(DDG_T,DDG_Q,A63,DDG_L) | =PO.DCA.Diag.Beta(DDG_T,DDG_Q,A63,DDG_L) | =PO.DCA.Diag.bParam(DDG_T,DDG_Q,A63,DDG_L) | =IFERROR(INDEX(DDG_Regimes,MATCH(M63,DDG_BFrom,1)),"Noise, b below 0") |
| 64 | 19                                                                                                                                                                                                      | 140.1                                                                                                                                   | 1000                                                                                                                                                                                                                                                                                                                           | =A64*DDG_DMo | =E63+B64*(D64-D63)   | =E64/B64             | =PO.RTA.NormalizedRate(B64,DDG_Pi,C64) | =1/G64             | =E64/(DDG_Pi-C64) | =SQRT(D64) | =-A64*PO.DCA.Diag.Bourdet(DDG_T,DDG_Q,A64,DDG_L) | =PO.DCA.Diag.Beta(DDG_T,DDG_Q,A64,DDG_L) | =PO.DCA.Diag.bParam(DDG_T,DDG_Q,A64,DDG_L) | =IFERROR(INDEX(DDG_Regimes,MATCH(M64,DDG_BFrom,1)),"Noise, b below 0") |
| 65 | 20                                                                                                                                                                                                      | 134.4                                                                                                                                   | 1000                                                                                                                                                                                                                                                                                                                           | =A65*DDG_DMo | =E64+B65*(D65-D64)   | =E65/B65             | =PO.RTA.NormalizedRate(B65,DDG_Pi,C65) | =1/G65             | =E65/(DDG_Pi-C65) | =SQRT(D65) | =-A65*PO.DCA.Diag.Bourdet(DDG_T,DDG_Q,A65,DDG_L) | =PO.DCA.Diag.Beta(DDG_T,DDG_Q,A65,DDG_L) | =PO.DCA.Diag.bParam(DDG_T,DDG_Q,A65,DDG_L) | =IFERROR(INDEX(DDG_Regimes,MATCH(M65,DDG_BFrom,1)),"Noise, b below 0") |
| 66 | 21                                                                                                                                                                                                      | 129.1                                                                                                                                   | 1000                                                                                                                                                                                                                                                                                                                           | =A66*DDG_DMo | =E65+B66*(D66-D65)   | =E66/B66             | =PO.RTA.NormalizedRate(B66,DDG_Pi,C66) | =1/G66             | =E66/(DDG_Pi-C66) | =SQRT(D66) | =-A66*PO.DCA.Diag.Bourdet(DDG_T,DDG_Q,A66,DDG_L) | =PO.DCA.Diag.Beta(DDG_T,DDG_Q,A66,DDG_L) | =PO.DCA.Diag.bParam(DDG_T,DDG_Q,A66,DDG_L) | =IFERROR(INDEX(DDG_Regimes,MATCH(M66,DDG_BFrom,1)),"Noise, b below 0") |
| 67 | 22                                                                                                                                                                                                      | 124                                                                                                                                     | 1000                                                                                                                                                                                                                                                                                                                           | =A67*DDG_DMo | =E66+B67*(D67-D66)   | =E67/B67             | =PO.RTA.NormalizedRate(B67,DDG_Pi,C67) | =1/G67             | =E67/(DDG_Pi-C67) | =SQRT(D67) | =-A67*PO.DCA.Diag.Bourdet(DDG_T,DDG_Q,A67,DDG_L) | =PO.DCA.Diag.Beta(DDG_T,DDG_Q,A67,DDG_L) | =PO.DCA.Diag.bParam(DDG_T,DDG_Q,A67,DDG_L) | =IFERROR(INDEX(DDG_Regimes,MATCH(M67,DDG_BFrom,1)),"Noise, b below 0") |
| 68 | 23                                                                                                                                                                                                      | 119.3                                                                                                                                   | 1000                                                                                                                                                                                                                                                                                                                           | =A68*DDG_DMo | =E67+B68*(D68-D67)   | =E68/B68             | =PO.RTA.NormalizedRate(B68,DDG_Pi,C68) | =1/G68             | =E68/(DDG_Pi-C68) | =SQRT(D68) | =-A68*PO.DCA.Diag.Bourdet(DDG_T,DDG_Q,A68,DDG_L) | =PO.DCA.Diag.Beta(DDG_T,DDG_Q,A68,DDG_L) | =PO.DCA.Diag.bParam(DDG_T,DDG_Q,A68,DDG_L) | End month, not read                                                    |
| 69 | 24                                                                                                                                                                                                      | 114.8                                                                                                                                   | 1000                                                                                                                                                                                                                                                                                                                           | =A69*DDG_DMo | =E68+B69*(D69-D68)   | =E69/B69             | =PO.RTA.NormalizedRate(B69,DDG_Pi,C69) | =1/G69             | =E69/(DDG_Pi-C69) | =SQRT(D69) | =-A69*PO.DCA.Diag.Bourdet(DDG_T,DDG_Q,A69,DDG_L) | =PO.DCA.Diag.Beta(DDG_T,DDG_Q,A69,DDG_L) | =PO.DCA.Diag.bParam(DDG_T,DDG_Q,A69,DDG_L) | End month, not read                                                    |
| 71 | Calculation Constants                                                                                                                                                                                   |                                                                                                                                         |                                                                                                                                                                                                                                                                                                                                |              |                      |                      |                                        |                    |                   |            |                                                  |                                          |                                            |                                                                        |
| 72 | Days in a month, 365.25/12                                                                                                                                                                              | 30.4375                                                                                                                                 | days/month                                                                                                                                                                                                                                                                                                                     |              |                      |                      |                                        |                    |                   |            |                                                  |                                          |                                            |                                                                        |

## Lambdas

| Name | RefersTo | Comment |
|------|----------|---------|
| PO.RTA.NormalizedRate | =LAMBDA(q, p_i, p_wf, IF((q<=0)+(p_i<=p_wf), NA(), q/(p_i-p_wf))) | Pressure-normalized rate q/(p_i - p_wf), STB/d/psi: the rate over the drawdown from the initial reservoir pressure. Works on single values or whole columns. For gas pass pseudo-pressures m(p_i), m(p_wf). |
| PO.RTA.FlowingMB | =LAMBDA(n_p, q, p_i, p_wf, ct, IF((ct<=0)+(SLOPE((p_i-p_wf)/q, n_p/q)<=0), NA(), 1/(SLOPE((p_i-p_wf)/q, n_p/q)*ct))) | Contacted oil in place, STB, by flowing material balance: fits (p_i - p_wf)/q against material-balance time Np/q and returns 1/(slope*ct). Np in STB, q in STB/d, pressures in psi, ct in 1/psi; boundary-dominated points only. |

## Names

| Name | RefersTo | Comment |
|------|----------|---------|
| DDG_Pi | $B$4 | Initial reservoir pressure, psi |
| DDG_Ct | $B$5 | Total compressibility, 1/psi |
| DDG_L | $B$6 | Derivative smoothing window, ln-cycles of time |
| DDG_R2Min | $B$7 | Least R² a straight-line fit should reach |
| DDG_Inputs | $B$4:$B$7 | The initial reservoir pressure, the total compressibility, the derivative smoothing window and the least R² a straight line should reach |
| DDG_NLinear | $B$10 | Months read as linear flow |
| DDG_TLinear | $B$11 | Last month read as linear flow, month |
| DDG_NBdf | $B$12 | Months read as boundary-dominated |
| DDG_TBdf | $B$13 | First month read as boundary-dominated, month |
| DDG_BLate | $B$14 | Late-time b(t), median of months 13 to 22 |
| DDG_BetaLate | $B$15 | Late-time β, median of months 13 to 22 |
| DDG_OOIP | $B$17 | Contacted oil in place, MMSTB |
| DDG_OOIPAll | $B$18 | Contacted oil in place, every month, MMSTB |
| DDG_Bpss | $B$19 | Flowing material balance intercept, b_pss, psi/(STB/d) |
| DDG_FmbR2 | $B$20 | Flowing material balance R² |
| DDG_LinSlope | $B$21 | Linear-flow slope, Δp/q against √t (LINEST), psi/(STB/d)/√day |
| DDG_LinInt | $B$22 | Linear-flow intercept, psi/(STB/d) |
| DDG_LinR2 | $B$23 | Linear-flow R² |
| DDG_RegimeCheck | $B$24 | Flow regime check verdict |
| DDG_RegimeCheckNote | $C$24 | Flow regime check comment |
| DDG_FmbCheck | $B$25 | Flowing material balance check verdict |
| DDG_FmbCheckNote | $C$25 | Flowing material balance check comment |
| DDG_LinCheck | $B$26 | Linear flow check verdict |
| DDG_LinCheckNote | $C$26 | Linear flow check comment |
| DDG_Results | $B$10:$B$26 | The months read in each regime, where linear flow ends and boundary-dominated flow starts, the late-time b(t) and β, the contacted oil in place by flowing material balance, its intercept and R², the √t linear-flow slope, intercept and R², and three checks |
| DDG_RegimeTable | $A$32:$D$35 | Each flow regime, the b(t) it is read from, and the β and b it shows |
| DDG_Regimes | $A$32:$A$35 | The flow regimes, in order of the b they are read from |
| DDG_BFrom | $B$32:$B$35 | The b(t) each regime is read from, ascending |
| DDG_History | $A$46:$N$69 | Each month's time, oil rate and flowing pressure, the time in days, the cumulative and material-balance time, the normalized rate, its inverse, the normalized cumulative, √t, the rate derivative, β, b(t) and the regime read |
| DDG_T | $A$46:$A$69 | Months, 1 to 24 |
| DDG_Q | $B$46:$B$69 | Oil rates, STB/d |
| DDG_Pwf | $C$46:$C$69 | Flowing bottomhole pressures, psi |
| DDG_Np | $E$46:$E$69 | Cumulative oil to each month, STB |
| DDG_Tc | $F$46:$F$69 | Material-balance time Np/q, days |
| DDG_InvNp | $H$46:$H$69 | Inverse normalized pressure (pi - pwf)/q, psi/(STB/d) |
| DDG_NpDp | $I$46:$I$69 | Normalized cumulative Np/(pi - pwf), STB/psi |
| DDG_RootT | $J$46:$J$69 | Square root of time, √days |
| DDG_Regime | $N$46:$N$69 | The flow regime read for each month |
| DDG_Line | $A$39:$C$40 | The flowing material balance line on the Agarwal-Gardner axes, q/Δp = (1 − (Np/Δp)/(N·ct))/b_pss, from the first boundary-dominated month to N·ct where the rate would reach zero |
| DDG_NCt | $B$40 | N·ct, the line's intercept on the Np/Δp axis, STB/psi |
| DDG_Curve | $A$46:$K$69 | Rate and Its Derivative, Log-Log |
| DDG_Fmb_Curve | $B$39:$G$40 | Agarwal-Gardner Flowing Material Balance |
| DDG_Root_Curve | $H$46:$J$69 | Linear Flow, Δp/q Against √t |
| DDG_DMo | $B$72 | Days in a month, 365.25/12, days/month |

---

## Related Blueprints
- [Rate-Transient Analysis and Flowing Material Balance](/blueprint/po.dca.rta.flowing.material.balance.md)
- [Production Data Cleaning](/blueprint/po.dca.data.cleaning.md)
- [Arps Decline Forecast](/blueprint/po.dca.arps.forecast.md)
- [Decline Model Auto-Fit](/blueprint/po.dca.autofit.compare.md)
- [Type Well Curves](/blueprint/po.dca.type.well.md)
- [Arps EUR Sensitivity](/blueprint/po.dca.eur.sensitivity.md)

