# CRM: editable cost model

Illustrative RUB amounts. A worked example, not a tariff, market estimate or commercial quote.

Period: three years. Prepared 17 November 2026. This is the calculation date, not a price-validity date.

## Verified outputs

| Users | Three years, RUB |
| --- | ---: |
| 10 | 595,000 - 1,090,000 |
| 20 | 740,000 - 1,380,000 |

10 and 20 users represent separate scope assumptions, not per-seat pricing. Corresponding lower and upper assumptions are added; this is not a statistical confidence interval.

## Executable function

```js
function crmTco(scenario, years=3) {
  if (!Number.isSafeInteger(years) || years < 1 || years > 10) throw Error('YEARS_RANGE');
  if (!Number.isSafeInteger(scenario.users) || scenario.users < 1) throw Error('USERS_RANGE');
  for (const key of ['development','supportPerYear','hostingPerYear']) {
    const range = scenario[key];
    if (!Array.isArray(range) || range.length !== 2 || !range.every(n=>Number.isSafeInteger(n)&&n>=0) || range[0]>range[1]) throw Error('COST_RANGE');
  }
  return scenario.development.map((development,i)=>development+years*(scenario.supportPerYear[i]+scenario.hostingPerYear[i]));
}
```

## Replace before estimating a real project

- Requirements owner: [name].
- Scope, integrations and migration: [description].
- One-off costs and estimate basis: [quote].
- Recurring payments, billing period and included hosting: [terms].
- Support, updates and source ownership: [terms].
- Taxes, content, training, staff time and platform exit: [scope and amounts].
- Price date and review period: [date].

## Model limits

Fixed nominal amounts without inflation, discounting or tax adjustments. Migration, integrations, content, advertising, training, staff time and exit costs are excluded. The model does not prove savings, ROI or an advantage over another platform.

## Files and reproduction

- [Inputs](https://evolkov.tech/wp-content/uploads/reproleaf-guides/crm-landing-localization-20261117/crm-inputs.json)
- [Actual results](https://evolkov.tech/wp-content/uploads/reproleaf-guides/crm-landing-localization-20261117/crm-results.json)
- [Inputs screenshot](https://evolkov.tech/wp-content/uploads/reproleaf-guides/crm-landing-localization-20261117/crm-en-inputs.webp)
- [Result screenshot](https://evolkov.tech/wp-content/uploads/reproleaf-guides/crm-landing-localization-20261117/crm-en-result.webp)

To reproduce independently, download the input JSON and save it next to a local model.mjs file. Copy the function above into model.mjs, append the following code, and run `node model.mjs` with Node.js. JSON and Markdown do not execute calculations on their own.

```js
import fs from 'node:fs';
const inputs = JSON.parse(fs.readFileSync('crm-inputs.json', 'utf8'));
console.log(inputs.scenarios.map(s => crmTco(s, inputs.years)));
```

The original run verified all six totals, one-year controls, invalid inputs and scenario selection in a local browser. Screenshots show an owned HTML worksheet, not the Reproleaf interface.
