> For the complete documentation index, see [llms.txt](https://bienenstock.gitbook.io/bienenstock/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://bienenstock.gitbook.io/bienenstock/beehive-en/start-here/how-does-the-calculation-work.md).

# How does the calculation work?

The calculation of the facility’s capacity is specific to each facility, depending on legal or internal requirements.

In general, a value is assigned to each caregiver.

{% hint style="info" %}
In an example, we use the value 10. ("One caregiver equivalent of 10").
{% endhint %}

Now, a value is also assigned to customers ('children').

{% hint style="info" %}
In Rhineland-Palatinate, for example, according to state regulations, one caregiver can supervise up to 10 children over the age of 2. Therefore, in this example, based on a caregiver equivalent of 10, a child over 2 years old would be assigned a factor of 1 in the database.
{% endhint %}

The software now continuously calculates the total care capacity of all caregivers against the total of all customers ('children'). The resulting value represents the remaining capacity of the facility at any given time.

<figure><img src="/files/YNYc6ndDfTLmpDOZAp1U" alt="" width="145"><figcaption></figcaption></figure>

```
// Example

2 caregivers are present in the facility.
Both caregivers have a capacity of 10.
10 * 2 = 20 (--> The facility has 20 available capacity)

Now the facility opens.

15 children over 2 years old (factor 1) check in at the terminal.
= 15 equivalents

--> The facility now has a remaining capacity of 5 equivalents

Now a younger child checks in, with an equivalent value of 2.5.

--> The remaining capacity is now 5 - 2.5 = 2.5

When the capacity is exhausted, the traffic light turns red, and check-in is no longer possible.
This can happen earlier if desired.
Yellow can also be set to warn customers in advance.
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://bienenstock.gitbook.io/bienenstock/beehive-en/start-here/how-does-the-calculation-work.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
