{
  "schemaVersion": 1,
  "slug": "freelance-quote-calculator",
  "category": "productivity",
  "kind": "implementation",
  "independentValidation": false,
  "implementationHash": "61d068c45631d59ebc532d841c4b16f2f5a65ec7d65e38d993b96adb1d5a178e",
  "provenance": "Generated from the calculation contract used by the published page. Publication is not external validation.",
  "sourceFiles": [
    "data/calculators/freelance-quote-calculator.json",
    "src/engine.js"
  ],
  "runtimeSource": "/sources/engine.txt",
  "runtimeHash": "5c888d8898afbdee36267bb9977829e1e2ac568f6677c8ee87469c139864645c",
  "scope": "The compute function records implemented equations, constants, lookup tables and custom rules. Inputs record defaults and allowed values; outputs record precision and units. Defaults are examples, not recommendations. General background references are not evidence for this specific algorithm.",
  "publishedFormula": {
    "formula": "P = (B x R + e) x (1 + b/100) x (1 + f/100), B = h x (1 + o/100) + r x rh; deposit = 0.5 x P; rate_eff = P / B",
    "vars": [
      [
        "B",
        "billable base hours"
      ],
      [
        "R",
        "hourly rate"
      ],
      [
        "e",
        "extra expenses"
      ],
      [
        "o",
        "overhead %"
      ],
      [
        "b",
        "risk buffer %"
      ],
      [
        "f",
        "rush fee %"
      ]
    ],
    "note": "Overhead, revisions, risk buffer, rush fee and the suggested 50% deposit are user-editable planning assumptions, not universal pricing or contract standards. Effective hourly rate = quoted price ÷ base hours."
  },
  "externalEvidence": null,
  "contract": {
    "compute": "const baseHours = hours*(1+overheadPercent/100)+revisions*revisionHours; const baseCost = baseHours*hourlyRate+expenses; const withBuffer = baseCost*(1+riskBuffer/100); const quotedPrice = withBuffer*(1+rushFee/100); return { baseHours, baseCost, withBuffer, quotedPrice, effectiveRate: baseHours > 0 ? quotedPrice/baseHours : 0, deposit: quotedPrice*0.5 };",
    "inputs": [
      {
        "name": "hours",
        "type": "number",
        "default": 40,
        "min": 0.5,
        "max": 5000,
        "step": 0.5
      },
      {
        "name": "hourlyRate",
        "type": "number",
        "default": 75,
        "min": 1,
        "max": 2000,
        "step": 5,
        "slider": true
      },
      {
        "name": "overheadPercent",
        "type": "number",
        "default": 15,
        "min": 0,
        "max": 60,
        "step": 5,
        "slider": true
      },
      {
        "name": "riskBuffer",
        "type": "number",
        "default": 20,
        "min": 0,
        "max": 100,
        "step": 5,
        "slider": true
      },
      {
        "name": "revisions",
        "type": "number",
        "default": 2,
        "min": 0,
        "max": 10,
        "step": 1,
        "slider": true
      },
      {
        "name": "revisionHours",
        "type": "number",
        "default": 4,
        "min": 0,
        "max": 100,
        "step": 0.5,
        "slider": true
      },
      {
        "name": "expenses",
        "type": "number",
        "default": 0,
        "min": 0,
        "max": 100000,
        "step": 10
      },
      {
        "name": "rushFee",
        "type": "number",
        "default": 0,
        "min": 0,
        "max": 100,
        "step": 5,
        "slider": true
      }
    ],
    "outputs": [
      {
        "name": "baseHours",
        "precision": 1,
        "unit": "h"
      },
      {
        "name": "baseCost",
        "precision": 2,
        "unit": "$"
      },
      {
        "name": "withBuffer",
        "precision": 2,
        "unit": "$"
      },
      {
        "name": "quotedPrice",
        "precision": 2,
        "unit": "$"
      },
      {
        "name": "effectiveRate",
        "precision": 2,
        "unit": "$"
      },
      {
        "name": "deposit",
        "precision": 2,
        "unit": "$"
      }
    ],
    "interpret": null
  }
}
