Repair, rebuild or replace
repair_rebuild_or_replaceRead-onlyIdempotent
Decides whether to repair (or rebuild) a machine or replace it, by comparing cost per hour. The repair is priced by the hours it buys before the next major event. Uses the method on torgix.ai/learn/repair-rebuild-or-replace. Give the replacement either as a cost per hour or as a purchase price. For a rebuild, enter the rebuild cost and the much larger hours it buys.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repair_cost | Yes | Repair or rebuild quote in US dollars | |
| current_value | Yes | What the machine is worth today | |
| hours_per_year | No | Hours it runs per year (default 1,200) | |
| hours_repair_buys | Yes | Hours the repair should run before the next major event (use the low end of the shop's range) | |
| interest_rate_pct | No | Cost of capital, percent (default 8) | |
| replacement_price | No | Purchase price of the replacement, if the cost per hour is not known | |
| replacement_years_owned | No | Years you'd keep the replacement (default 7) | |
| value_after_those_hours | Yes | What it would be worth after those hours | |
| insurance_tax_storage_pct | No | Insurance, taxes and storage percent (default 3) | |
| replacement_cost_per_hour | No | Total cost per hour of the replacement, if known | |
| replacement_residual_value | No | Replacement's expected resale value (default 30% of price) | |
| current_operating_cost_per_hour | Yes | What it costs to operate per hour today (fuel, repairs, wear) | |
| replacement_operating_cost_per_hour | No | Replacement's operating cost per hour (default: same as today's machine) |