{
  "format": "charitology-output-cost-planner",
  "version": 1,
  "classification": "illustrative",
  "method": "planned-cash-cost-per-defined-output-v1",
  "sheet": "Output cost",
  "currency": "USD",
  "basis": "Nominal planned cash costs",
  "limits": {
    "cashComponent": 1000000000000,
    "wholeOutputCount": 1000000000,
    "yearMin": 1900,
    "yearMax": 2200
  },
  "scope": "One defined output and one inclusive planning period. Fictional assumptions, not observed data or measured impact.",
  "inputTypes": {
    "C10": "text",
    "C11": "text",
    "C12": "text",
    "C13": "date",
    "C14": "date",
    "C15": "integer",
    "C16": "fixed-basis-text",
    "C17": "text",
    "C18": "text",
    "C19": "text",
    "C20": "text",
    "C24:E26": "nonnegative-number",
    "C31:E31": "nonnegative-whole-number",
    "H24:H26": "literal-source-date-rationale",
    "H31": "literal-source-date-rationale"
  },
  "cells": {
    "B2": "Planned cost per defined output",
    "B3": "Illustrative planning assumptions. No observed data, measured impact or charity rating.",
    "B5": "Point estimate (USD / output)",
    "B6": "Lower bound (USD / output)",
    "B7": "Upper bound (USD / output)",
    "B9": "Definition",
    "B10": "Plan",
    "C10": "Fictional workshop plan",
    "B11": "Output unit",
    "C11": "completed workshop",
    "B12": "Counting rule",
    "C12": "Count each completed fictional workshop once.",
    "B13": "Period start (inclusive)",
    "C13": {
      "type": "date",
      "iso": "2027-01-01"
    },
    "B14": "Period end (inclusive)",
    "C14": {
      "type": "date",
      "iso": "2027-01-31"
    },
    "B15": "Price year (nominal USD)",
    "C15": 2027,
    "B16": "Cost basis",
    "C16": "Nominal planned cash costs",
    "B17": "Scope",
    "C17": "Fictional workshop series",
    "B18": "Costs included",
    "C18": "Staff, direct and allocated shared cash costs.",
    "B19": "Costs excluded",
    "C19": "Unpriced volunteer time and donated inputs.",
    "B20": "Source basis",
    "C20": "Illustrative authored assumptions, not observations.",
    "B21": "Required definition",
    "H10": "Edit the blue / amber input cells. Formulas are unlocked and visible.",
    "H11": "USD only. No currency or inflation conversion.",
    "H12": "Blank is unknown. Enter 0 only for an explicit zero.",
    "H13": "Use the same period for costs and output counts.",
    "H15": "Planning dates and price year are fictional, not source publication dates.",
    "H17": "A completed output is not a measured benefit or causal effect.",
    "H19": "Keep omissions and the counting rule explicit.",
    "B22": "Cash costs for this period (USD)",
    "B23": "Cost component",
    "C23": "Lower bound",
    "D23": "Point estimate",
    "E23": "Upper bound",
    "F23": "Input bounds",
    "H23": "Source, date and rationale",
    "B24": "Staff",
    "C24": 500,
    "D24": 600,
    "E24": 700,
    "H24": "Illustrative authored assumption. Source date unknown.",
    "B25": "Direct nonstaff",
    "C25": 200,
    "D25": 300,
    "E25": 400,
    "H25": "Illustrative authored assumption. Source date unknown.",
    "B26": "Allocated shared costs",
    "C26": 100,
    "D26": 100,
    "E26": 100,
    "H26": "Illustrative authored assumption. Source date unknown.",
    "B27": "Total cash cost (USD)",
    "B29": "Defined outputs for this period",
    "B30": "Counted unit",
    "C30": "Lower bound",
    "D30": "Point estimate",
    "E30": "Upper bound",
    "F30": "Input bounds",
    "H30": "Source, date and rationale",
    "B31": "Defined output count",
    "C31": 6,
    "D31": 10,
    "E31": 14,
    "H31": "Illustrative assumption. Count each completed fictional workshop once; source date unknown.",
    "B34": "How to use the bounds",
    "B35": "The lower ratio uses lower cost / upper outputs. The upper ratio uses upper cost / lower outputs.",
    "B36": "These are conditional arithmetic bounds. They are not probabilities, percentiles or confidence intervals.",
    "B37": "Only the uncertainty you enter is covered. Unknown bounds do not erase a valid point estimate.",
    "B39": "Method and limits",
    "B40": "Planned cash cost divided by one defined output count. No outcomes, counterfactuals or discounting.",
    "B41": "This separate planner does not run, import or reproduce the frozen Model Kit v1 simulation.",
    "B42": "Template method: planned-cash-cost-per-defined-output-v1. Authoring/formula specification is public.",
    "B43": "Use costs and defined outputs to inspect the charity system; feedback can revise the assumptions.",
    "H20": "Keep personal or restricted source text out of copies you share."
  },
  "formulas": {
    "E21": "=IF(COUNTBLANK(C10:C20)>0,\"Missing definition\",IF(COUNT(C13:C15)<>3,\"Check dates / year\",IF(OR(C13<>INT(C13),C14<>INT(C14),C13<DATE(1900,1,1),C14>DATE(2200,12,31),C14<C13,C15<>INT(C15),C15<1900,C15>2200,C16<>\"Nominal planned cash costs\"),\"Check dates / basis\",\"Complete\")))",
    "F24": "=IF(OR(COUNT(C24:E24)+COUNTBLANK(C24:E24)<>3,MIN(C24:E24)<0,MAX(C24:E24)>1000000000000),\"Invalid\",IF(OR(IF(COUNT(C24:D24)=2,C24>D24,FALSE),IF(COUNT(D24:E24)=2,D24>E24,FALSE),IF(COUNT(C24,E24)=2,C24>E24,FALSE)),\"Invalid\",IF(COUNT(C24:E24)<3,\"Incomplete\",\"Usable\")))",
    "F25": "=IF(OR(COUNT(C25:E25)+COUNTBLANK(C25:E25)<>3,MIN(C25:E25)<0,MAX(C25:E25)>1000000000000),\"Invalid\",IF(OR(IF(COUNT(C25:D25)=2,C25>D25,FALSE),IF(COUNT(D25:E25)=2,D25>E25,FALSE),IF(COUNT(C25,E25)=2,C25>E25,FALSE)),\"Invalid\",IF(COUNT(C25:E25)<3,\"Incomplete\",\"Usable\")))",
    "F26": "=IF(OR(COUNT(C26:E26)+COUNTBLANK(C26:E26)<>3,MIN(C26:E26)<0,MAX(C26:E26)>1000000000000),\"Invalid\",IF(OR(IF(COUNT(C26:D26)=2,C26>D26,FALSE),IF(COUNT(D26:E26)=2,D26>E26,FALSE),IF(COUNT(C26,E26)=2,C26>E26,FALSE)),\"Invalid\",IF(COUNT(C26:E26)<3,\"Incomplete\",\"Usable\")))",
    "F31": "=IF(OR(COUNT(C31:E31)+COUNTBLANK(C31:E31)<>3,MIN(C31:E31)<0,MAX(C31:E31)>1000000000,IF(ISNUMBER(C31),C31<>INT(C31),FALSE),IF(ISNUMBER(D31),D31<>INT(D31),FALSE),IF(ISNUMBER(E31),E31<>INT(E31),FALSE)),\"Invalid\",IF(OR(IF(COUNT(C31:D31)=2,C31>D31,FALSE),IF(COUNT(D31:E31)=2,D31>E31,FALSE),IF(COUNT(C31,E31)=2,C31>E31,FALSE)),\"Invalid\",IF(COUNT(C31:E31)<3,\"Incomplete\",\"Usable\")))",
    "C27": "=IF(COUNT(C24:C26)<>3,\"n.a.\",IF(OR(MIN(C24:C26)<0,MAX(C24:C26)>1000000000000,COUNTIFS(F24:F26,\"Invalid\")>0),\"n.a.\",SUM(C24:C26)))",
    "D27": "=IF(COUNT(D24:D26)<>3,\"n.a.\",IF(OR(MIN(D24:D26)<0,MAX(D24:D26)>1000000000000),\"n.a.\",SUM(D24:D26)))",
    "E27": "=IF(COUNT(E24:E26)<>3,\"n.a.\",IF(OR(MIN(E24:E26)<0,MAX(E24:E26)>1000000000000,COUNTIFS(F24:F26,\"Invalid\")>0),\"n.a.\",SUM(E24:E26)))",
    "E5": "=IF($E$21<>\"Complete\",\"n.a.\",IF(AND(ISNUMBER(D27),AND(ISNUMBER(D31),IF(ISNUMBER(D31),AND(D31>=0,D31<=1000000000,D31=INT(D31)),FALSE))),IF(D31=0,\"n.a.\",D27/D31),\"n.a.\"))",
    "E6": "=IF($E$21<>\"Complete\",\"n.a.\",IF(AND(ISNUMBER(C27),AND(ISNUMBER(E31),IF(ISNUMBER(E31),AND(E31>=0,E31<=1000000000,E31=INT(E31)),FALSE)),F31<>\"Invalid\"),IF(E31=0,\"n.a.\",C27/E31),\"n.a.\"))",
    "E7": "=IF($E$21<>\"Complete\",\"n.a.\",IF(AND(ISNUMBER(E27),AND(ISNUMBER(C31),IF(ISNUMBER(C31),AND(C31>=0,C31<=1000000000,C31=INT(C31)),FALSE)),F31<>\"Invalid\"),IF(C31=0,IF(E27>0,\"Unbounded\",\"n.a.\"),E27/C31),\"n.a.\"))",
    "H5": "=IF(E21<>\"Complete\",E21,IF(NOT(ISNUMBER(D27)),\"Point cash cost is unknown or invalid.\",IF(NOT(ISNUMBER(D31)),\"Point output count is unknown or invalid.\",IF(OR(D31<0,D31>1000000000,D31<>INT(D31)),\"Point output count is invalid.\",IF(D31=0,\"No outputs in the point estimate.\",\"USD per \"&C11)))))",
    "H6": "=IF(E6=\"n.a.\",IF(AND(ISNUMBER(E31),E31=0),\"No outputs at the upper output bound.\",\"Required bounds or definition are unknown / invalid.\"),\"Conditional on the supplied bounds.\")",
    "H7": "=IF(E7=\"Unbounded\",\"Zero lower output permits no finite upper ratio.\",IF(E7=\"n.a.\",IF(AND(ISNUMBER(E27),E27=0,ISNUMBER(C31),C31=0),\"0 cost / 0 outputs is undefined.\",\"Required bounds or definition are unknown / invalid.\"),\"Conditional on the supplied bounds.\"))"
  },
  "semantics": {
    "blank": "Unknown; never numeric zero.",
    "zeroCost": "Numeric zero for positive defined output count.",
    "zeroPointOutputs": "Point ratio unavailable; no outputs in point estimate.",
    "zeroLowerOutputs": "Upper ratio unbounded when positive cost is possible; 0/0 remains undefined.",
    "bounds": "Author-supplied conditional arithmetic bounds, not probability intervals.",
    "unavailable": "n.a.",
    "knownInputBounds": "Each provided lower/point/upper value must be ordered; missing bounds do not invalidate a valid point estimate.",
    "sample": "All numbers, dates, source descriptions and outputs are fictional authored assumptions."
  },
  "license": "MIT for authored template/formulas; no rights to future user data are inferred."
}
