# Repair versus replace calculator

- Human page: https://happytails.ai/en/calculators/repair-versus-replace-calculator/
- Markdown: https://happytails.ai/en/calculators/repair-versus-replace-calculator.md
- Structured JSON: https://happytails.ai/agents/en/calculators/repair-versus-replace-calculator/index.json
- Visibility: public

## Tool capabilities

| Property | Value |
| --- | --- |
| Tool ID | `repair-versus-replace-calculator` |
| Category | calculators |
| Implementation | Registered implementation. Registration alone is not a production-quality guarantee. |
| Browser execution | Automatic updates after valid input or file selection. |
| Browser processing | Browser; see tool notes for network behavior. |
| HTTP API | Not callable through HTTP. |
| Browser-agent interface | run_current_tool |

### Implementation notes

Compare replacement now with three repaired-life scenarios over the same horizon. Costs, life and repair success are supplied assumptions. A failed repair is paid for and followed by immediate replacement. Runs on your device. Changing units keeps the entered numbers.

### Inputs and settings

No free-text input is required. Use the file inputs and/or settings below.

| Setting | Meaning | Control type | Default | Constraints |
| --- | --- | --- | --- | --- |
| `repairCost` | Repair cost paid now | number | 100 | min=0 max=1000000000 step=any |
| `replacementCost` | Replacement purchase cost | number | 500 | min=0 max=1000000000 step=any |
| `repairLifeLow` | Shorter successful-repair life (years) | number | 2 | min=1 max=100 step=1 |
| `repairLifeBase` | Expected successful-repair life (years) | number | 4 | min=1 max=100 step=1 |
| `repairLifeHigh` | Longer successful-repair life (years) | number | 6 | min=1 max=100 step=1 |
| `newLife` | Lifetime of each replacement (years) | number | 8 | min=1 max=100 step=1 |
| `oldAnnual` | Annual operating/maintenance cost after repair | number | 120 | min=0 max=1000000000 step=any |
| `newAnnual` | Annual operating/maintenance cost of replacement | number | 70 | min=0 max=1000000000 step=any |
| `success` | Assumed probability the repair succeeds (%) | number | 90 | min=0 max=100 step=any |
| `horizon` | Comparison horizon (years) | number | 10 | min=1 max=50 step=1 |
| `discount` | Annual discount rate (%) | number | 3 | min=0 max=100 step=any |
| `residual` | Asset value at the horizon | select | "Linear remaining-life credit" | Allowed: No end-value credit, Linear remaining-life credit |
| `currency` | Currency of all entered costs | select | "USD" | Allowed: USD, EUR, GBP, CAD, AUD, Other |

### Browser-agent workflow

1. Open the human page in a browser that supports WebMCP.
2. Discover the interface exposed by that page; use its actual schema.
3. Select files on the page first when the tool requires files.
4. Call `run_current_tool` with valid input and settings.
5. Inspect the returned result or error and the displayed output. Retrieve files from the displayed download links.

Calls do not automatically copy or download results. Browser permissions still apply. Interface availability alone is not proof of successful execution.

### Planning specification

Up to 50 horizon years and 100 years per asset life. Costs remain constant. No repeated repairs, financing, inflation, market valuation or equipment reliability is inferred.

This describes intended requirements. Use the implementation notes, interface schema and observed output to determine current support.

### Complete machine-readable capability record

```json
{
  "id": "repair-versus-replace-calculator",
  "category": "calculators",
  "built": true,
  "requirements": "Up to 50 horizon years and 100 years per asset life. Costs remain constant. No repeated repairs, financing, inflation, market valuation or equipment reliability is inferred.",
  "implementation": {
    "fields": [
      {
        "key": "repairCost",
        "label": "Repair cost paid now",
        "value": 100,
        "type": "number",
        "min": 0,
        "max": 1000000000,
        "step": "any"
      },
      {
        "key": "replacementCost",
        "label": "Replacement purchase cost",
        "value": 500,
        "type": "number",
        "min": 0,
        "max": 1000000000,
        "step": "any"
      },
      {
        "key": "repairLifeLow",
        "label": "Shorter successful-repair life (years)",
        "value": 2,
        "type": "number",
        "min": 1,
        "max": 100,
        "step": 1
      },
      {
        "key": "repairLifeBase",
        "label": "Expected successful-repair life (years)",
        "value": 4,
        "type": "number",
        "min": 1,
        "max": 100,
        "step": 1
      },
      {
        "key": "repairLifeHigh",
        "label": "Longer successful-repair life (years)",
        "value": 6,
        "type": "number",
        "min": 1,
        "max": 100,
        "step": 1
      },
      {
        "key": "newLife",
        "label": "Lifetime of each replacement (years)",
        "value": 8,
        "type": "number",
        "min": 1,
        "max": 100,
        "step": 1
      },
      {
        "key": "oldAnnual",
        "label": "Annual operating/maintenance cost after repair",
        "value": 120,
        "type": "number",
        "min": 0,
        "max": 1000000000,
        "step": "any"
      },
      {
        "key": "newAnnual",
        "label": "Annual operating/maintenance cost of replacement",
        "value": 70,
        "type": "number",
        "min": 0,
        "max": 1000000000,
        "step": "any"
      },
      {
        "key": "success",
        "label": "Assumed probability the repair succeeds (%)",
        "value": 90,
        "type": "number",
        "min": 0,
        "max": 100,
        "step": "any"
      },
      {
        "key": "horizon",
        "label": "Comparison horizon (years)",
        "value": 10,
        "type": "number",
        "min": 1,
        "max": 50,
        "step": 1
      },
      {
        "key": "discount",
        "label": "Annual discount rate (%)",
        "value": 3,
        "type": "number",
        "min": 0,
        "max": 100,
        "step": "any"
      },
      {
        "key": "residual",
        "label": "Asset value at the horizon",
        "value": "Linear remaining-life credit",
        "type": "select",
        "values": [
          "No end-value credit",
          "Linear remaining-life credit"
        ]
      },
      {
        "key": "currency",
        "label": "Currency of all entered costs",
        "value": "USD",
        "type": "select",
        "values": [
          "USD",
          "EUR",
          "GBP",
          "CAD",
          "AUD",
          "Other"
        ]
      }
    ],
    "input": false,
    "background": false,
    "live": true,
    "presentation": "metrics",
    "note": "Compare replacement now with three repaired-life scenarios over the same horizon. Costs, life and repair success are supplied assumptions. A failed repair is paid for and followed by immediate replacement. Runs on your device. Changing units keeps the entered numbers.",
    "experience": {
      "automatic": true,
      "single": false,
      "inputMaxLength": 1000000,
      "inputMode": "text",
      "label": "Your text",
      "placeholder": "Type or paste your input…",
      "help": "Change the input or settings to update your result. Results update as you type. Up to 1,000,000 characters.",
      "action": null
    },
    "mode": "automatic",
    "interactive": false
  },
  "execution": "Browser interface",
  "api": null,
  "browser_agent": {
    "supported": true,
    "name": "run_current_tool",
    "discovery": "WebMCP on the human page in a supporting browser",
    "verification": "See audit/API-AUDIT.md; availability is not verification"
  }
}
```

## Page guide

Compare repair and replacement over the same horizon with three repair-life scenarios and an annual cost schedule.

How can we improve this tool?

Report a problem or share an idea.

Please leave out private information. Your message and the tool name go to our team via PostHog.

### How to use Repair versus replace calculator

1. Enter your measured quantities, units and assumptions.
2. Review the calculated result and the stated limits.
3. Download the report or plan for your project.

## Useful next steps

- [Food waste cost calculator](https://happytails.ai/en/calculators/food-waste-cost-calculator/) ([Markdown](https://happytails.ai/en/calculators/food-waste-cost-calculator.md))

- [Compost volume calculator](https://happytails.ai/en/calculators/compost-volume-calculator/) ([Markdown](https://happytails.ai/en/calculators/compost-volume-calculator.md))

## Compare the complete ownership period

Enter repair and replacement costs, annual operating costs and the expected life of a new replacement. Choose shorter, expected and longer successful-repair lives, then a shared horizon.

### See how assumptions change the result

Enter the chance that repair succeeds and an annual discount rate. Failure means paying for the repair and then replacing immediately. Optional end-value credit uses remaining replacement life, not an invented resale price.

### Save the measurements and assumptions

Download CSV and a text or JSON report. The calculation runs on your device. Changing a unit keeps the number you entered, so check both before using the result.
