---
title: "Quittio\\Core\\Calculation – API-Referenz"
description: "The public classes in Quittio\\Core\\Calculation."
canonical_url: "https://quittio.dev/docs/api/Quittio/Core/Calculation"
locale: de
meta:
  "og:description": "The public classes in Quittio\\Core\\Calculation."
  "og:image": "https://quittio.dev/og/quittio-de.jpg"
  "og:image:alt": "Quittio: E-Rechnungen für PHP und Laravel. Rechtssicher, validiert, archiviert, mit geprüfter Beispielrechnung."
  "og:image:height": "630"
  "og:image:type": image/jpeg
  "og:image:width": "1200"
  "og:title": "Quittio\\Core\\Calculation – API-Referenz"
  "twitter:image": "https://quittio.dev/og/quittio-de.jpg"
  "twitter:image:alt": "Quittio: E-Rechnungen für PHP und Laravel. Rechtssicher, validiert, archiviert, mit geprüfter Beispielrechnung."
---

> Index of every page on this site: [llms.txt](https://quittio.dev/llms.txt)

[API reference](https://quittio.dev/docs/api)

# Quittio\\Core\\Calculation

## quittio/core \#

### [Quittio\\Core\\Calculation](https://quittio.dev/docs/api/Quittio/Core/Calculation)

- [`AllowanceSplitter`](https://quittio.dev/docs/api/Quittio/Core/Calculation/AllowanceSplitter)Splits a document discount over several VAT groups.
- [`CalculationException`](https://quittio.dev/docs/api/Quittio/Core/Calculation/CalculationException)
- [`CalculationPolicy`](https://quittio.dev/docs/api/Quittio/Core/Calculation/CalculationPolicy)Decisions of the calculator that are not fixed by EN 16931. The policy is configuration of the run and not stored with the invoice: the same data calculated under another policy can give other amounts.
- [`DeclaredAmounts`](https://quittio.dev/docs/api/Quittio/Core/Calculation/DeclaredAmounts)Declared amounts of an existing document (Meta::FLAG\_DECLARED\_AMOUNTS): whether they are needed at all, and the fingerprint of the amount inputs they belong to.
- [`DeclaredAmountsMode`](https://quittio.dev/docs/api/Quittio/Core/Calculation/DeclaredAmountsMode) enumWhat the calculator does with the declared amounts of an existing document (line net amounts BT-131 and VAT breakdown BT-116, BT-117 that another system rounded differently, see Meta::FLAG\_DECLARED\_AMOUNTS).
- [`En16931Calculator`](https://quittio.dev/docs/api/Quittio/Core/Calculation/En16931Calculator)Calculation according to EN 16931.
- [`GrossPriceConverter`](https://quittio.dev/docs/api/Quittio/Core/Calculation/GrossPriceConverter)Gross price mode for B2C and shops.
- [`LargestRemainder`](https://quittio.dev/docs/api/Quittio/Core/Calculation/LargestRemainder)Distributes an amount over weights so that the rounded parts add up exactly (largest remainder method).
- [`LineCalculator`](https://quittio.dev/docs/api/Quittio/Core/Calculation/LineCalculator)Calculates the invoice line net amount (BT-131):
- [`TotalsCalculator`](https://quittio.dev/docs/api/Quittio/Core/Calculation/TotalsCalculator) interfaceCalculates line amounts, allowances and charges, the VAT breakdown and totals.

```json
{"@context":"https://schema.org","@graph":[{"@id":"https://quittio.dev/#website","@type":"WebSite","description":"E-Rechnungen für PHP und Laravel: ZUGFeRD, XRechnung und Peppol erstellen, prüfen, lesen und archivieren.","inLanguage":"de-DE","name":"Quittio","url":"https://quittio.dev/","publisher":{"@id":"https://quittio.dev/#identity"},"workTranslation":{"@id":"https://quittio.dev/en#website"}},{"@id":"https://quittio.dev/docs/api/Quittio/Core/Calculation#webpage","@type":"WebPage","description":"The public classes in Quittio\\Core\\Calculation.","name":"Quittio\\Core\\Calculation – API-Referenz","url":"https://quittio.dev/docs/api/Quittio/Core/Calculation","isPartOf":{"@id":"https://quittio.dev/#website"},"potentialAction":[{"@type":"ReadAction","target":["https://quittio.dev/docs/api/Quittio/Core/Calculation"]}],"primaryImageOfPage":{"@id":"https://quittio.dev/#logo"}},{"@id":"https://quittio.dev/#identity","@type":"Organization","description":"Open-Source-Bibliothek für E-Rechnungen in PHP und Laravel (ZUGFeRD, XRechnung, Peppol) und Quittio Managed.","email":"kontakt@niklasforst.de","legalName":"Niklas Forst – Softwareentwicklung","name":"Quittio","url":"https://quittio.dev","founder":{"@type":"Person","name":"Niklas Forst","url":"https://quittio.dev/ueber"},"logo":{"@id":"https://quittio.dev/#logo"},"sameAs":["https://github.com/Quittio/quittio","https://packagist.org/packages/quittio/quittio"]},{"@id":"https://quittio.dev/#logo","@type":"ImageObject","caption":"Quittio","contentUrl":"https://quittio.dev/logo.png","inLanguage":"de-DE","url":"https://quittio.dev/logo.png"}]}
```