INFINITE UPSIDE

Explain the tail before making a promise

How do I calculate a 95th-percentile turnaround time?

Two correct reports can disagree because they use different percentile conventions. Keep the method and the slowest jobs visible.

To calculate a 95th-percentile turnaround time, first define which completed jobs belong in the report, sort their measured durations and apply a named percentile convention. Under the nearest-rank method, select the observation at rank rounded up from 0.95 times the count. An interpolated percentile can give a different answer from the same records.

The result describes a location in a duration distribution. It is not the average job, a guarantee about the next customer or permission to ignore the slowest cases. Keep the count, time boundary, method and worst observations beside the number.

Fix the measure before sorting

Choose one complete task and a consistent start and finish. For example, a document-preparation service might measure accepted complete request to delivery of the checked final document. A first acknowledgment and a finished document are different events.

For the arithmetic here, durations are already established using one continuous elapsed-minute clock. We are not constructing a supplier's support-hours calendar, interpreting a contract deadline or deciding which message qualifies as a response.

Each fictional job has one identifier and one verified completion. Every job uses the same scope, clock and reporting rule. The record contains no cancellations, duplicates, missing durations or unfinished jobs. Those assumptions make the example inspectable; an actual report must check them.

Inspect the complete record

Consider twenty wholly fictional completed jobs. Ordered from fastest to slowest, their durations in minutes are:

1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19 and 120.

The first nineteen add to 190 minutes. Adding the final 120 gives 310; dividing by twenty gives a mean of 15.5 minutes. The two middle observations are ten and eleven, so the median is 10.5 minutes.

These are correctly calculated summaries, but neither displays the two-hour job. The mean-and-median guide explains that different summaries describe different features of a record. Here we need to inspect the slow end as well.

Google's public monitoring chapter discusses why an average latency can conceal a much slower tail of requests. The durations here are our own original service example, not Google's measurements or benchmarks.

Calculate the nearest-rank percentile

For P95 under nearest rank, multiply 0.95 by twenty. The result is nineteen, already an integer. Select the nineteenth ordered observation: 19 minutes.

Nineteen of the twenty durations are at or below nineteen minutes. One lies above it. Thus 95% of this specific completed record is at or below its nearest-rank P95. The remaining observation is 120 minutes, which must remain visible.

For P90, round 0.90 × 20 up to rank eighteen, giving 18 minutes. For P99, round 0.99 × 20 = 19.8 up to rank twenty, giving 120 minutes.

With only twenty observations, each job represents five percentage points of the empirical count. Asking for P99 does not create finer underlying evidence. It selects the maximum under this convention because the record is too small to have a separate observed one-percent tail.

Calculate an interpolated percentile

Now use a different explicit rule: linear interpolation at position 1 + (n − 1)p, where n is the count and p is the desired fraction. This is the type-7 convention described in the R statistical software's quantile documentation. That documentation lists multiple algorithms; type 7 is its stated default.

For twenty observations at p = 0.95, the position is 1 + 19 × 0.95 = 19.05. Move 5% of the distance from observation nineteen, which is 19 minutes, toward observation twenty, which is 120 minutes.

The difference is 101 minutes. Five percent is 5.05. Adding it to nineteen gives 24.05 minutes.

No actual job lasted 24.05 minutes. Interpolation constructs a sample quantile estimate between adjacent observations. A report using this method should not imply that this is an observed job or the method every other tool must use.

The nearest-rank answer of nineteen and the type-7 answer of 24.05 do not reveal a data discrepancy. They apply different definitions to the same ordered values. Name the method before comparing the numbers.

Answer a threshold question directly

Suppose an internal review asks, “What share of these completed jobs finished within twenty minutes?” Count the jobs meeting that explicit condition instead of inferring the answer from a differently defined percentile.

Nineteen of twenty meet the condition, so the observed share is 95%. Exactly one does not. Twenty minutes is an invented review threshold here, not an industry target or a contractual promise.

The type-7 P95 is 24.05, yet 95% of the observed jobs are within twenty minutes. That is not a contradiction: the interpolated quantile and direct threshold count are different calculations. Keep the actual pass-count rule visible when the decision concerns a specific threshold.

Likewise, decide whether equality counts. A requirement of less than nineteen minutes includes eighteen jobs in this record; at or below nineteen includes nineteen. The boundary wording changes the numerator without changing any duration.

Ties change the count at the cutoff

For a separate tied record, replace the original 120-minute job with another nineteen-minute job. Nearest-rank P95 is still nineteen, but now all twenty observations are at or below it. The threshold contains 100% of the record, not exactly 95%.

A percentile location does not always divide a finite dataset into perfectly sized groups. Ties and small counts matter. If someone needs the share at or below a stated duration, count it directly and report the numerator and denominator. Do not infer that exactly one job must sit above P95 just because the dataset contains twenty jobs.

Keep the worst case visible

In a separate version of the record, change only the slowest job from 120 to 240 minutes. The nearest-rank P95 remains nineteen because the nineteenth observation has not changed.

The maximum has doubled. The total rises from 310 to 430, so the mean becomes 21.5 minutes. Type-7 P95 becomes 19 + 0.05 × (240 − 19) = 30.05 minutes.

A statement that service did not worsen because nearest-rank P95 stayed constant would conceal the changed experience of that last job. Keep important extreme cases and their causes in the review, along with the distribution summaries.

Do not automatically delete a long observation as an outlier. Check the source and task scope. A timestamp error needs a supported correction; a real four-hour delay needs an explanation and response. Removing it because it makes the dashboard uncomfortable answers neither problem.

Pool the records, not the percentiles

Split the original twenty jobs into two equal groups for another calculation. Group A contains durations one through ten. Group B contains eleven through nineteen plus 120.

Each group has ten observations. Nearest-rank P95 selects the tenth observation in each, giving 10 minutes for A and 120 for B. Their simple average is 65 minutes.

The pooled twenty-job P95 is still 19 minutes, not 65. Even though the group sizes match, averaging the two group percentiles does not reconstruct the pooled percentile. Retain individual durations or a suitably supported aggregate distribution to calculate the combined result.

The mean behaves differently: A's mean is 5.5 and B's is 25.5, whose equal-size average is the pooled 15.5. That property of means does not transfer to percentiles. A familiar averaging operation can be correct for one statistic and wrong for another.

Show which jobs were eligible

A report of jobs completed this week can omit the slow jobs still waiting at the cutoff. A report of jobs accepted this week may require later observation before every final duration is known. These are different cohorts.

If a job has been open for forty-five minutes at cutoff, forty-five is its elapsed age so far, not its final turnaround time. Do not enter zero, drop the job without a count or label forty-five a completed duration.

For an ordinary completed-job report, disclose its selection rule and retain a separate open-work count and age record. If the question requires estimating a duration distribution with incomplete outcomes, use an appropriate analysis rather than pretending all observations are complete.

The equipment restoration guide illustrates the importance of retaining open events beside completed-event averages. The percentile calculation here similarly depends on knowing which outcomes are actually observed.

Make comparisons that describe the same service

Before comparing periods, check task mix, start and finish, included hours, errors, rework and completion selection. A new report that stops at acknowledgment can look faster without delivering the final document any sooner.

Keep failed or incorrect work visible too. A rapid response that does not complete the required task is not automatically a successful turnaround. The exact categorization should follow the defined service, rather than whichever label improves the percentile.

Changing workload mix can also alter a pooled result while no individual task type improves. Compare like services where the decision needs that detail, retaining counts so a small fast group does not silently replace a large slow one.

Finally, this twenty-job record does not establish the population's true P95 or a 95% chance that the next job will finish within nineteen minutes. A future service commitment requires evidence about the operating conditions, resources and uncertainty beyond the arithmetic here.

Add completed work without erasing the tail

Return to the original fictional completed-job record: durations one through nineteen minutes and one 120-minute completion, for twenty jobs in all. For a separate pooled-record exercise, add ten more distinct, completed jobs of twenty minutes each. Each uses the same start, finish, clock and required service definition, and no open or duplicate record is included. These are supplied data for the comparison, not evidence that a real service gained capacity or improved.

The pooled record now contains 30 jobs. It has nineteen durations from one through nineteen, ten tied at twenty and the original 120-minute job. Under nearest rank, P95 selects rank ceil(0.95 × 30) = 29. Rank 29 is twenty minutes, so pooled P95 is 20 minutes. It has risen from nineteen in the original twenty-job record even though the 120-minute maximum has not changed.

Count the service threshold separately. 29 of 30 pooled jobs finish at or below twenty minutes, approximately 96.67%; the original record had 19 of 20, or 95%. The threshold share rises while nearest-rank P95 also rises. The statistics answer different questions, and a tie at the threshold affects the count. Neither change identifies a cause or establishes that every customer experienced better service.

For the type-7 interpolation convention already defined, the position is 1 + 29 × 0.95 = 28.55. Both ordered observations 28 and 29 are twenty, so the interpolated result is also 20 minutes. The original type-7 result was 24.05 minutes. That difference is due to the changed distribution and interpolation, not a correction to either original calculation.

The original durations total 310 minutes. The ten added jobs contribute 200, so the pooled total is 510 minutes and the mean is 17 minutes. This exceeds the original mean of 15.5 minutes even as the direct at-or-below-twenty share rises. Each summary weights or locates observations differently; report the total count and 120-minute maximum alongside them.

Do not treat 200 elapsed job-minutes as automatically equal to 200 paid staff-minutes. The jobs may overlap, wait, use different numbers of qualified people or require unrecorded setup. A capacity or cost decision needs the actual work schedule and complete resource record. The twenty-minute duration is not a promised response time or proof of on-time contract compliance.

Nor does adding these completed records tell us what happened to unfinished work. If more slow jobs remain open at the reporting cutoff, show their count and current age separately; adding completed jobs can change the metric while those outcomes are still unknown. An open age is not a final duration, and the pooled P95 cannot be promoted into a guarantee for the next job.

To compare real periods, preserve the original files, reporting cutoffs, task mix, service definitions, clock and selected percentile method. If the ten extra jobs use a different service type or only first acknowledgment rather than completed delivery, the supplied pooling assumption fails. Rebuild an appropriate like-for-like comparison instead of presenting the pooled number as a performance improvement.

Leave a reproducible report

Save the included job identifiers, measured durations, selection rule, clock definition, completion evidence, percentile algorithm and version. Record the count, mean, median, chosen tail percentiles, maximum and any direct threshold result the decision requires.

When two reports disagree, compare those definitions before blaming the software. A changed cohort, an interpolation rule or a hidden open job can explain the difference. Keep the original record and any supported correction so the comparison remains auditable.

Explore Infinite Upside

For Vijay Sheth’s personal accounts, read Infinite Upside: Building Wealth With Room to Live, published by Sheth Capital, Inc.

Find your edition · Chapter companion

Choose an edition

Choose an edition

ABOUT THE CONTRIBUTOR

Luna Lim

DIRECTOR OF FINANCIAL RESEARCH & EDITORIAL STRATEGY

SHETH CAPITAL, INC.

Luna Lim writes about business, investing, and the judgment behind financial decisions. She joined PCH Exotics Inc. as Director of Operations in 2022, working across La Jolla and Miami. Today, she reports directly to Vijay Sheth at Sheth Capital, Inc., bringing an operator’s perspective to the ideas she covers.

Based in Pacific Beach, California, Luna is curious about the people behind the numbers: what they’re building, how they weigh uncertainty, and what makes a risk worth taking. Her articles for Infinite Upside follow those questions through the details, with clear explanations and a feel for how decisions play out in everyday business.

More from Luna Lim

The Infinite Upside store