# Procentberegner

> Tre procentberegninger i én: X % af et tal, hvor mange procent ét tal udgør af et andet, og den procentvise ændring mellem to værdier.

Free tool by Orkosi. Page: https://orkosi.com/tools/percentage-calculator?lang=da

En rabat, en vækstrate, en andel af en total: tre spørgsmål, én beregner, med svaret skrevet som en sætning.

1. Vælg, hvilket spørgsmål du stiller.
2. Indtast de to tal.
3. Tryk på Beregn, og læs svaret.

## Input

| Field | Type | Required | What it is |
| --- | --- | --- | --- |
| `mode` | "of" \| "is-what-percent" \| "change" | no | Spørgsmål. Default: "of". |
| `a` | number | yes | A. |
| `b` | number | yes | B. |

## Example

Input:

```json
{
  "mode": "change",
  "a": 80,
  "b": 100
}
```

Result:

```json
{
  "result": 25,
  "explanation": "Fra 80 til 100 er en stigning på 25 %."
}
```

## Run it

It needs a free Orkosi account, nothing else. No credits are used.

- **A person**: open the page, enter an e-mail once, use the tool.
- **Claude or ChatGPT**: add the Orkosi connector `https://orkosi.com/api/v1/public/mcp` and sign in, or create the free account on the sign-in page. Then call `orkosi_run_free_tool` with `{ "tool": "percentage-calculator", "input": { … } }`.
- **Any agent or program that can make an HTTP request**:

  1. Once, create the account: `POST https://orkosi.com/api/v1/public/signup` with `{ "name": "…", "email": "…", "terms_accepted": true }` and no key. Ask the person for the e-mail and their agreement to the terms first. The answer carries `data.api_key`, shown once.
  2. Run the tool:

```bash
curl -X POST https://orkosi.com/api/v1/public/tools/percentage-calculator/run \
  -H "Authorization: Bearer $ORKOSI_API_KEY" -H "Content-Type: application/json" \
  -d '{"input":{"mode":"change","a":80,"b":100}}'
```

The answer is `{ "data": { "tool": "…", "result": { … } } }`. A call without a key is answered 401 with the signup steps as data.

## Questions

**Hvordan beregner jeg procentvis ændring?**

Træk den gamle værdi fra den nye, divider med den gamle værdi, og gang med 100. Fra 80 til 100 er en stigning på 25 %.

**Hvorfor ophæver et fald på 50 % ikke en stigning på 50 %?**

Fordi grundlaget ændrer sig. 100 minus 50 % er 50, og 50 plus 50 % er kun 75. Det kræver en stigning på 100 % at komme sig efter et fald på 50 %.

**Hvad er et procentpoint?**

Den almindelige forskel mellem to procenttal. En rate, der går fra 4 % til 5 %, steg med ét procentpoint, hvilket er en stigning på 25 %.

All free tools: https://orkosi.com/tools.md
