Skip to content

Main content

CAPA Action Due Overdue Day Gap Tool

Calculate capa action due overdue day gap from explicit caller-supplied inputs.

Loading tool…

Description

Calculate capa action due overdue day gap from explicit caller-supplied inputs.

Quality records separate measured results, reference values, acceptance rules, and supporting evidence. Arithmetic consistency and record coverage can be checked against supplied criteria without establishing traceability, approving a method, or deciding product conformity.

Calculate capa action due overdue day gap from explicit caller-supplied inputs.

When to use this tool

Use it for capa action due overdue day gap when the required inputs and conventions are already available.

How to use the tool and how it works

  1. Enter openedDay, dueDay, closedDay, closed, today, extensionDays. Use the stated units and boundary conventions.
  2. Run the calculation. Correct any input error before interpreting a result.
  3. Read ageDays, effectiveDueDay, overdueDays. Inspect any known, defined, inclusion, or boundary flags before interpreting numeric values.

Require nonnegative integer extensionDays, dueDay>=openedDay, and the selected end day at least openedDay. Select closedDay when closed, otherwise today; calculate age, extended due day, and overdueDays=max(0,end-effectiveDueDay).1

Input fieldMeaning and unitsAccepted input
openedDayOpened DayRequired. Safe integer.
dueDayDue DayRequired. Safe integer.
closedDayClosed DayRequired. Safe integer.
closedClosedRequired. Boolean.
todayTodayRequired. Safe integer.
extensionDaysExtension DaysRequired. Safe integer; minimum 0.
Output fieldInterpretationReturned shape
ageDaysAge DaysRequired. Safe integer.
effectiveDueDayEffective Due DayRequired. Safe integer.
overdueDaysOverdue DaysRequired. Safe integer.
json
{
  "input": {
    "openedDay": 100,
    "dueDay": 120,
    "closedDay": 125,
    "closed": true,
    "today": 130,
    "extensionDays": 3
  },
  "output": {
    "ageDays": 25,
    "effectiveDueDay": 123,
    "overdueDays": 2
  }
}

Limitations and assumptions

  • The due day is not overdue. Ignored closedDay or today values do not affect the selected clock, and business-day calendars or the validity of an extension are not inferred.
  • The field tables describe structural bounds; the mechanics also state cross-field requirements. Malformed input shapes, disallowed keys, and invalid domains cause input errors. Results must remain finite and within the declared output contract. A successful false flag or zero placeholder is distinct from an error.
  • Numeric arithmetic uses binary floating point. Exact comparisons have no hidden tolerance or decimal rounding; negative zero is exported as zero. Decimal-text integer operations retain the exactness specifically stated above.

Alternative or Complementary methods

For capa action due overdue day gap, check the source records and the supplied rule before comparing the result with another method. Use a separate evidence or method review when arithmetic consistency alone cannot establish the required conclusion.

References

  1. Calculation and input contract: quality-assurance/capa-action-due-overdue-day-gap — tool.io

Similar or alternative tools