Cleaning cloth inventory by supplied colour calculator

Calculate required cloths by colour and total cloth changes with your own figures.

Your numbers

Use the units shown. Results update as you change valid inputs.

Use required cloths by colour and total cloth changes to compare changes to your inputs. The method and limits below explain the scope.

Examples

Examples

Try the starting example

Use [colour code,interval index,cloth changes]; enter JSON
[["Red",0,4],["Red",1,5],["Blue",0,3]]
Wash-return delay (intervals)
2
Required cloths by colour (JSON)
{"Blue":3,"Red":9}
Total cloth changes
12

Try another scenario

Use [colour code,interval index,cloth changes]; enter JSON
[["Red",0,6],["Red",1,5],["Blue",1,4]]
Wash-return delay (intervals)
3
Required cloths by colour (JSON)
{"Blue":4,"Red":11}
Total cloth changes
15
Calculation method

Calculation method

Required cloths by colour (JSON)

For each colour maximum rolling total cloth changes over wash-return delay intervals.

Total cloth changes

Sum all recorded use.

Symbols and units
a
Use [colour code,interval index,cloth changes]; enter JSON
b
Wash-return delay (intervals)

Use the units shown. A list keeps the order in which you enter its values. The symbol ^ means “raised to the power of”.

Assumptions & limits

Assumptions & limits

  • User-defined cloth colour categories and wash-return delay; no hygiene colour standard inferred. Supported limits: All numeric inputs and computed intermediates must remain finite. Supported numeric input magnitude is zero or 1e-12 through 1e12 in absolute value; reject values outside this bounded range. All lists/JSON record tables are limited to 100 records unless a stricter bound is stated; reject malformed record arity and wrong member types. Indices/counts nonnegative integers; <=100 intervals; delay1..100; exact colour-code matching.
Are these inputs private?

These calculations run in your browser. A shared link contains the values you choose to share. Only questions submitted to the separate AI finder are sent to OpenAI.

Share this page
Share this calculator

Leave unchecked to share the page without your entered values.