{
  "version": "v1",
  "source": "https://craftquantities.com",
  "licence": "CC BY 4.0",
  "licenceUrl": "https://creativecommons.org/licenses/by/4.0/",
  "attribution": "Craft Quantities — craftquantities.com",
  "documentation": "https://craftquantities.com/api/",
  "versioning": "Fields are added, never removed or repurposed, within a version. A breaking change becomes /api/v2/ and v1 keeps being built.",
  "slug": "critical-path-float-calculator",
  "category": "financial-adjacent",
  "title": "Critical Path and Float Calculator (CPM)",
  "description": "Link up to six activities by what must finish first, and get the programme's length, its critical path and the float every other activity has.",
  "url": "https://craftquantities.com/calculators/financial-adjacent/critical-path-float-calculator/",
  "json": "https://craftquantities.com/api/v1/calculators/critical-path-float-calculator.json",
  "inputCount": 16,
  "testCaseCount": 10,
  "sourceCount": 2,
  "lastVerified": "2026-09-22",
  "citation": {
    "author": "Craft Quantities",
    "title": "Critical Path and Float Calculator (CPM)",
    "version": "1.0.0",
    "sourcesChecked": "2026-09-22",
    "url": "https://craftquantities.com/calculators/financial-adjacent/critical-path-float-calculator/",
    "accessDate": null,
    "accessDateNote": "Add the date you retrieved this. It is deliberately absent: a static file cannot know when you read it, and the build date would be wrong.",
    "permanentVersionedUrl": null,
    "permanentVersionedUrlNote": "Not offered. This site keeps no archive of previous builds, so any such URL would resolve to the current page or to nothing. The version and sourcesChecked fields identify the calculation instead.",
    "formats": {
      "plain": "Craft Quantities. Critical Path and Float Calculator (CPM). Version 1.0.0. Sources checked 2026-09-22. https://craftquantities.com/calculators/financial-adjacent/critical-path-float-calculator/",
      "apa": "Craft Quantities. (2026). Critical Path and Float Calculator (CPM) (Version 1.0.0) [Web calculator]. Retrieved from https://craftquantities.com/calculators/financial-adjacent/critical-path-float-calculator/",
      "harvard": "Craft Quantities (2026) Critical Path and Float Calculator (CPM) (Version 1.0.0). Available at: https://craftquantities.com/calculators/financial-adjacent/critical-path-float-calculator/",
      "bibtex": "@misc{craftquantities-calculators-financial-adjacent-critical-path-float-calculator,\n  author       = {{Craft Quantities}},\n  title        = {Critical Path and Float Calculator (CPM)},\n  version      = {1.0.0},\n  year         = {2026},\n  howpublished = {\\url{https://craftquantities.com/calculators/financial-adjacent/critical-path-float-calculator/}},\n}"
    }
  },
  "inputs": [
    {
      "id": "durationA",
      "label": "Activity A Duration (days, 0 to leave out)",
      "type": "number",
      "defaultValue": 5,
      "min": 0,
      "max": 1000,
      "step": 0.5,
      "help": "How long activity A takes, in working days."
    },
    {
      "id": "durationB",
      "label": "Activity B Duration (days, 0 to leave out)",
      "type": "number",
      "defaultValue": 3,
      "min": 0,
      "max": 1000,
      "step": 0.5,
      "help": "How long activity B takes, in working days."
    },
    {
      "id": "preB1",
      "label": "Activity B: First Activity It Follows",
      "type": "select",
      "defaultValue": "A",
      "options": [
        {
          "value": "none",
          "label": "None"
        },
        {
          "value": "A",
          "label": "Activity A"
        }
      ],
      "help": "An activity that must finish before B can start."
    },
    {
      "id": "preB2",
      "label": "Activity B: Second Activity It Follows",
      "type": "select",
      "defaultValue": "none",
      "options": [
        {
          "value": "none",
          "label": "None"
        },
        {
          "value": "A",
          "label": "Activity A"
        }
      ],
      "help": "An activity that must finish before B can start."
    },
    {
      "id": "durationC",
      "label": "Activity C Duration (days, 0 to leave out)",
      "type": "number",
      "defaultValue": 6,
      "min": 0,
      "max": 1000,
      "step": 0.5,
      "help": "How long activity C takes, in working days."
    },
    {
      "id": "preC1",
      "label": "Activity C: First Activity It Follows",
      "type": "select",
      "defaultValue": "A",
      "options": [
        {
          "value": "none",
          "label": "None"
        },
        {
          "value": "A",
          "label": "Activity A"
        },
        {
          "value": "B",
          "label": "Activity B"
        }
      ],
      "help": "An activity that must finish before C can start."
    },
    {
      "id": "preC2",
      "label": "Activity C: Second Activity It Follows",
      "type": "select",
      "defaultValue": "none",
      "options": [
        {
          "value": "none",
          "label": "None"
        },
        {
          "value": "A",
          "label": "Activity A"
        },
        {
          "value": "B",
          "label": "Activity B"
        }
      ],
      "help": "An activity that must finish before C can start."
    },
    {
      "id": "durationD",
      "label": "Activity D Duration (days, 0 to leave out)",
      "type": "number",
      "defaultValue": 4,
      "min": 0,
      "max": 1000,
      "step": 0.5,
      "help": "How long activity D takes, in working days."
    },
    {
      "id": "preD1",
      "label": "Activity D: First Activity It Follows",
      "type": "select",
      "defaultValue": "B",
      "options": [
        {
          "value": "none",
          "label": "None"
        },
        {
          "value": "A",
          "label": "Activity A"
        },
        {
          "value": "B",
          "label": "Activity B"
        },
        {
          "value": "C",
          "label": "Activity C"
        }
      ],
      "help": "An activity that must finish before D can start."
    },
    {
      "id": "preD2",
      "label": "Activity D: Second Activity It Follows",
      "type": "select",
      "defaultValue": "none",
      "options": [
        {
          "value": "none",
          "label": "None"
        },
        {
          "value": "A",
          "label": "Activity A"
        },
        {
          "value": "B",
          "label": "Activity B"
        },
        {
          "value": "C",
          "label": "Activity C"
        }
      ],
      "help": "An activity that must finish before D can start."
    },
    {
      "id": "durationE",
      "label": "Activity E Duration (days, 0 to leave out)",
      "type": "number",
      "defaultValue": 2,
      "min": 0,
      "max": 1000,
      "step": 0.5,
      "help": "How long activity E takes, in working days."
    },
    {
      "id": "preE1",
      "label": "Activity E: First Activity It Follows",
      "type": "select",
      "defaultValue": "C",
      "options": [
        {
          "value": "none",
          "label": "None"
        },
        {
          "value": "A",
          "label": "Activity A"
        },
        {
          "value": "B",
          "label": "Activity B"
        },
        {
          "value": "C",
          "label": "Activity C"
        },
        {
          "value": "D",
          "label": "Activity D"
        }
      ],
      "help": "An activity that must finish before E can start."
    },
    {
      "id": "preE2",
      "label": "Activity E: Second Activity It Follows",
      "type": "select",
      "defaultValue": "D",
      "options": [
        {
          "value": "none",
          "label": "None"
        },
        {
          "value": "A",
          "label": "Activity A"
        },
        {
          "value": "B",
          "label": "Activity B"
        },
        {
          "value": "C",
          "label": "Activity C"
        },
        {
          "value": "D",
          "label": "Activity D"
        }
      ],
      "help": "An activity that must finish before E can start."
    },
    {
      "id": "durationF",
      "label": "Activity F Duration (days, 0 to leave out)",
      "type": "number",
      "defaultValue": 3,
      "min": 0,
      "max": 1000,
      "step": 0.5,
      "help": "How long activity F takes, in working days."
    },
    {
      "id": "preF1",
      "label": "Activity F: First Activity It Follows",
      "type": "select",
      "defaultValue": "E",
      "options": [
        {
          "value": "none",
          "label": "None"
        },
        {
          "value": "A",
          "label": "Activity A"
        },
        {
          "value": "B",
          "label": "Activity B"
        },
        {
          "value": "C",
          "label": "Activity C"
        },
        {
          "value": "D",
          "label": "Activity D"
        },
        {
          "value": "E",
          "label": "Activity E"
        }
      ],
      "help": "An activity that must finish before F can start."
    },
    {
      "id": "preF2",
      "label": "Activity F: Second Activity It Follows",
      "type": "select",
      "defaultValue": "none",
      "options": [
        {
          "value": "none",
          "label": "None"
        },
        {
          "value": "A",
          "label": "Activity A"
        },
        {
          "value": "B",
          "label": "Activity B"
        },
        {
          "value": "C",
          "label": "Activity C"
        },
        {
          "value": "D",
          "label": "Activity D"
        },
        {
          "value": "E",
          "label": "Activity E"
        }
      ],
      "help": "An activity that must finish before F can start."
    }
  ],
  "sources": [
    {
      "label": "The critical path method, Kelley and Walker (1959): a forward pass sets each activity's early start as the latest early finish of the activities it follows, a backward pass sets its late finish as the earliest late start of the activities that follow it, and total float is late start minus early start"
    },
    {
      "label": "Critical activities are those with zero total float; any delay to one of them delays the end of the programme by the same amount, while an activity with float can slip by up to its float without moving the end"
    }
  ],
  "testCases": [
    {
      "name": "The defaults: a two-path network with one day of float on C",
      "inputs": {
        "durationA": 5,
        "durationB": 3,
        "preB1": "A",
        "preB2": "none",
        "durationC": 6,
        "preC1": "A",
        "preC2": "none",
        "durationD": 4,
        "preD1": "B",
        "preD2": "none",
        "durationE": 2,
        "preE1": "C",
        "preE2": "D",
        "durationF": 3,
        "preF1": "E",
        "preF2": "none"
      },
      "expected": 17,
      "toleranceDecimalPlaces": 0,
      "unit": "days",
      "confidence": "high",
      "steps": [
        {
          "label": "Activity A: total float (early start day 0, late start day 0)",
          "value": 0,
          "unit": "days"
        },
        {
          "label": "Activity B: total float (early start day 5, late start day 5)",
          "value": 0,
          "unit": "days"
        },
        {
          "label": "Activity C: total float (early start day 5, late start day 6)",
          "value": 1,
          "unit": "days"
        },
        {
          "label": "Activity D: total float (early start day 8, late start day 8)",
          "value": 0,
          "unit": "days"
        },
        {
          "label": "Activity E: total float (early start day 12, late start day 12)",
          "value": 0,
          "unit": "days"
        },
        {
          "label": "Activity F: total float (early start day 14, late start day 14)",
          "value": 0,
          "unit": "days"
        }
      ],
      "basis": "cited",
      "sourceIndex": 0
    },
    {
      "name": "Lengthening C moves the critical path onto it",
      "inputs": {
        "durationA": 5,
        "durationB": 3,
        "preB1": "A",
        "preB2": "none",
        "durationC": 9,
        "preC1": "A",
        "preC2": "none",
        "durationD": 4,
        "preD1": "B",
        "preD2": "none",
        "durationE": 2,
        "preE1": "C",
        "preE2": "D",
        "durationF": 3,
        "preF1": "E",
        "preF2": "none"
      },
      "expected": 19,
      "toleranceDecimalPlaces": 0,
      "unit": "days",
      "confidence": "high",
      "steps": [
        {
          "label": "Activity A: total float (early start day 0, late start day 0)",
          "value": 0,
          "unit": "days"
        },
        {
          "label": "Activity B: total float (early start day 5, late start day 7)",
          "value": 2,
          "unit": "days"
        },
        {
          "label": "Activity C: total float (early start day 5, late start day 5)",
          "value": 0,
          "unit": "days"
        },
        {
          "label": "Activity D: total float (early start day 8, late start day 10)",
          "value": 2,
          "unit": "days"
        },
        {
          "label": "Activity E: total float (early start day 14, late start day 14)",
          "value": 0,
          "unit": "days"
        },
        {
          "label": "Activity F: total float (early start day 16, late start day 16)",
          "value": 0,
          "unit": "days"
        }
      ],
      "basis": "cited",
      "sourceIndex": 1
    },
    {
      "name": "An activity at zero is left out",
      "inputs": {
        "durationA": 5,
        "durationB": 3,
        "preB1": "A",
        "preB2": "none",
        "durationC": 6,
        "preC1": "A",
        "preC2": "none",
        "durationD": 4,
        "preD1": "B",
        "preD2": "none",
        "durationE": 2,
        "preE1": "C",
        "preE2": "D",
        "durationF": 0,
        "preF1": "E",
        "preF2": "none"
      },
      "expected": 14,
      "toleranceDecimalPlaces": 0,
      "unit": "days",
      "confidence": "high",
      "steps": [
        {
          "label": "Activity A: total float (early start day 0, late start day 0)",
          "value": 0,
          "unit": "days"
        },
        {
          "label": "Activity B: total float (early start day 5, late start day 5)",
          "value": 0,
          "unit": "days"
        },
        {
          "label": "Activity C: total float (early start day 5, late start day 6)",
          "value": 1,
          "unit": "days"
        },
        {
          "label": "Activity D: total float (early start day 8, late start day 8)",
          "value": 0,
          "unit": "days"
        },
        {
          "label": "Activity E: total float (early start day 12, late start day 12)",
          "value": 0,
          "unit": "days"
        }
      ],
      "basis": "cited",
      "sourceIndex": 0
    },
    {
      "name": "Two activities that start together",
      "inputs": {
        "durationA": 4,
        "durationB": 7,
        "preB1": "none",
        "preB2": "none",
        "durationC": 2,
        "preC1": "A",
        "preC2": "none",
        "durationD": 0,
        "preD1": "none",
        "preD2": "none",
        "durationE": 0,
        "preE1": "none",
        "preE2": "none",
        "durationF": 3,
        "preF1": "B",
        "preF2": "C"
      },
      "expected": 10,
      "toleranceDecimalPlaces": 0,
      "unit": "days",
      "confidence": "high",
      "steps": [
        {
          "label": "Activity A: total float (early start day 0, late start day 1)",
          "value": 1,
          "unit": "days"
        },
        {
          "label": "Activity B: total float (early start day 0, late start day 0)",
          "value": 0,
          "unit": "days"
        },
        {
          "label": "Activity C: total float (early start day 4, late start day 5)",
          "value": 1,
          "unit": "days"
        },
        {
          "label": "Activity F: total float (early start day 7, late start day 7)",
          "value": 0,
          "unit": "days"
        }
      ],
      "basis": "cited",
      "sourceIndex": 0
    },
    {
      "name": "Link coverage, network 0",
      "inputs": {
        "durationA": 2,
        "durationB": 3,
        "preB1": "none",
        "preB2": "none",
        "durationC": 4,
        "preC1": "none",
        "preC2": "B",
        "durationD": 5,
        "preD1": "none",
        "preD2": "B",
        "durationE": 6,
        "preE1": "none",
        "preE2": "B",
        "durationF": 7,
        "preF1": "none",
        "preF2": "B"
      },
      "expected": 10,
      "toleranceDecimalPlaces": 0,
      "unit": "days",
      "confidence": "high",
      "steps": [
        {
          "label": "Activity A: total float (early start day 0, late start day 8)",
          "value": 8,
          "unit": "days"
        },
        {
          "label": "Activity B: total float (early start day 0, late start day 0)",
          "value": 0,
          "unit": "days"
        },
        {
          "label": "Activity C: total float (early start day 3, late start day 6)",
          "value": 3,
          "unit": "days"
        },
        {
          "label": "Activity D: total float (early start day 3, late start day 5)",
          "value": 2,
          "unit": "days"
        },
        {
          "label": "Activity E: total float (early start day 3, late start day 4)",
          "value": 1,
          "unit": "days"
        },
        {
          "label": "Activity F: total float (early start day 3, late start day 3)",
          "value": 0,
          "unit": "days"
        }
      ],
      "basis": "cited",
      "sourceIndex": 0
    },
    {
      "name": "Link coverage, network 1",
      "inputs": {
        "durationA": 2,
        "durationB": 3,
        "preB1": "A",
        "preB2": "A",
        "durationC": 4,
        "preC1": "A",
        "preC2": "none",
        "durationD": 5,
        "preD1": "A",
        "preD2": "C",
        "durationE": 6,
        "preE1": "A",
        "preE2": "C",
        "durationF": 7,
        "preF1": "A",
        "preF2": "C"
      },
      "expected": 13,
      "toleranceDecimalPlaces": 0,
      "unit": "days",
      "confidence": "high",
      "steps": [
        {
          "label": "Activity A: total float (early start day 0, late start day 0)",
          "value": 0,
          "unit": "days"
        },
        {
          "label": "Activity B: total float (early start day 2, late start day 10)",
          "value": 8,
          "unit": "days"
        },
        {
          "label": "Activity C: total float (early start day 2, late start day 2)",
          "value": 0,
          "unit": "days"
        },
        {
          "label": "Activity D: total float (early start day 6, late start day 8)",
          "value": 2,
          "unit": "days"
        },
        {
          "label": "Activity E: total float (early start day 6, late start day 7)",
          "value": 1,
          "unit": "days"
        },
        {
          "label": "Activity F: total float (early start day 6, late start day 6)",
          "value": 0,
          "unit": "days"
        }
      ],
      "basis": "cited",
      "sourceIndex": 0
    },
    {
      "name": "Link coverage, network 2",
      "inputs": {
        "durationA": 2,
        "durationB": 3,
        "preB1": "none",
        "preB2": "none",
        "durationC": 4,
        "preC1": "B",
        "preC2": "A",
        "durationD": 5,
        "preD1": "B",
        "preD2": "none",
        "durationE": 6,
        "preE1": "B",
        "preE2": "D",
        "durationF": 7,
        "preF1": "B",
        "preF2": "D"
      },
      "expected": 15,
      "toleranceDecimalPlaces": 0,
      "unit": "days",
      "confidence": "high",
      "steps": [
        {
          "label": "Activity A: total float (early start day 0, late start day 9)",
          "value": 9,
          "unit": "days"
        },
        {
          "label": "Activity B: total float (early start day 0, late start day 0)",
          "value": 0,
          "unit": "days"
        },
        {
          "label": "Activity C: total float (early start day 3, late start day 11)",
          "value": 8,
          "unit": "days"
        },
        {
          "label": "Activity D: total float (early start day 3, late start day 3)",
          "value": 0,
          "unit": "days"
        },
        {
          "label": "Activity E: total float (early start day 8, late start day 9)",
          "value": 1,
          "unit": "days"
        },
        {
          "label": "Activity F: total float (early start day 8, late start day 8)",
          "value": 0,
          "unit": "days"
        }
      ],
      "basis": "cited",
      "sourceIndex": 0
    },
    {
      "name": "Link coverage, network 3",
      "inputs": {
        "durationA": 2,
        "durationB": 3,
        "preB1": "A",
        "preB2": "A",
        "durationC": 4,
        "preC1": "none",
        "preC2": "B",
        "durationD": 5,
        "preD1": "C",
        "preD2": "A",
        "durationE": 6,
        "preE1": "C",
        "preE2": "none",
        "durationF": 7,
        "preF1": "C",
        "preF2": "E"
      },
      "expected": 22,
      "toleranceDecimalPlaces": 0,
      "unit": "days",
      "confidence": "high",
      "steps": [
        {
          "label": "Activity A: total float (early start day 0, late start day 0)",
          "value": 0,
          "unit": "days"
        },
        {
          "label": "Activity B: total float (early start day 2, late start day 2)",
          "value": 0,
          "unit": "days"
        },
        {
          "label": "Activity C: total float (early start day 5, late start day 5)",
          "value": 0,
          "unit": "days"
        },
        {
          "label": "Activity D: total float (early start day 9, late start day 17)",
          "value": 8,
          "unit": "days"
        },
        {
          "label": "Activity E: total float (early start day 9, late start day 9)",
          "value": 0,
          "unit": "days"
        },
        {
          "label": "Activity F: total float (early start day 15, late start day 15)",
          "value": 0,
          "unit": "days"
        }
      ],
      "basis": "cited",
      "sourceIndex": 0
    },
    {
      "name": "Link coverage, network 4",
      "inputs": {
        "durationA": 2,
        "durationB": 3,
        "preB1": "none",
        "preB2": "none",
        "durationC": 4,
        "preC1": "A",
        "preC2": "none",
        "durationD": 5,
        "preD1": "none",
        "preD2": "B",
        "durationE": 6,
        "preE1": "D",
        "preE2": "A",
        "durationF": 7,
        "preF1": "D",
        "preF2": "none"
      },
      "expected": 15,
      "toleranceDecimalPlaces": 0,
      "unit": "days",
      "confidence": "high",
      "steps": [
        {
          "label": "Activity A: total float (early start day 0, late start day 7)",
          "value": 7,
          "unit": "days"
        },
        {
          "label": "Activity B: total float (early start day 0, late start day 0)",
          "value": 0,
          "unit": "days"
        },
        {
          "label": "Activity C: total float (early start day 2, late start day 11)",
          "value": 9,
          "unit": "days"
        },
        {
          "label": "Activity D: total float (early start day 3, late start day 3)",
          "value": 0,
          "unit": "days"
        },
        {
          "label": "Activity E: total float (early start day 8, late start day 9)",
          "value": 1,
          "unit": "days"
        },
        {
          "label": "Activity F: total float (early start day 8, late start day 8)",
          "value": 0,
          "unit": "days"
        }
      ],
      "basis": "cited",
      "sourceIndex": 0
    },
    {
      "name": "Link coverage, network 5",
      "inputs": {
        "durationA": 2,
        "durationB": 3,
        "preB1": "A",
        "preB2": "A",
        "durationC": 4,
        "preC1": "B",
        "preC2": "A",
        "durationD": 5,
        "preD1": "A",
        "preD2": "C",
        "durationE": 6,
        "preE1": "none",
        "preE2": "B",
        "durationF": 7,
        "preF1": "E",
        "preF2": "A"
      },
      "expected": 18,
      "toleranceDecimalPlaces": 0,
      "unit": "days",
      "confidence": "high",
      "steps": [
        {
          "label": "Activity A: total float (early start day 0, late start day 0)",
          "value": 0,
          "unit": "days"
        },
        {
          "label": "Activity B: total float (early start day 2, late start day 2)",
          "value": 0,
          "unit": "days"
        },
        {
          "label": "Activity C: total float (early start day 5, late start day 9)",
          "value": 4,
          "unit": "days"
        },
        {
          "label": "Activity D: total float (early start day 9, late start day 13)",
          "value": 4,
          "unit": "days"
        },
        {
          "label": "Activity E: total float (early start day 5, late start day 5)",
          "value": 0,
          "unit": "days"
        },
        {
          "label": "Activity F: total float (early start day 11, late start day 11)",
          "value": 0,
          "unit": "days"
        }
      ],
      "basis": "cited",
      "sourceIndex": 0
    }
  ]
}
