# French Payroll, Tax & Legal Calculators for AI Agents (`calculons/french-legal-tax-calculators`) Actor

Exact French calculations an LLM gets wrong: salary gross/net, income tax 2026, notary fees, severance and termination pay, fixed-term bonus, mileage allowance, VAT, car registration, malus, car import cost, driving licence points. Official sources returned with every result.

- **URL**: https://apify.com/calculons/french-legal-tax-calculators.md
- **Developed by:** [David Scarchilli](https://apify.com/calculons) (community)
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $5.00 / 1,000 successful calculations

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## French Payroll, Tax & Legal Calculators for AI Agents

**Exact French calculations that language models usually get wrong**, as a tool your AI agent can call:
salary gross to net and back, income tax 2026, notary fees, severance and conventional termination pay, retirement
indemnity, fixed-term contract bonus, mileage allowance, VAT, car registration cost, ecological malus, full cost of
importing a car, driving licence points recovery.

Every result comes with **the official sources** (Légifrance, service-public.gouv.fr, URSSAF, impots.gouv.fr), the
date the rules were checked, and a link to a page that explains the calculation in French on
[calculons.fr](https://calculons.fr), where the same engines run for thousands of people each day.

### Why use it

- **Deterministic and sourced.** Same input, same output, rules of 2026 written as code, not guessed by a model.
- **Built for agents.** One input, one JSON result with a one-line `summary`. If a parameter is missing or wrong, the
  result says which fields are expected and gives an example, so the agent can fix its call by itself.
- **Errors are free.** You only pay for successful calculations.
- **Fast and light.** No browser, no scraping, no external API: a run takes about a second.

### How to call it

One calculation:

```json
{
  "calculator": "severance-pay",
  "params": { "salaireMensuel": 3000, "ancienneteAnnees": 12, "ancienneteMois": 4 }
}
```

Several at once (up to 500, one charge per successful calculation):

```json
{
  "calculations": [
    { "calculator": "salary-gross-to-net", "params": { "brutMensuel": 3200, "statut": "cadre", "tauxPas": 0.075 } },
    { "calculator": "notary-fees", "params": { "prix": 180000, "type": "neuf" } }
  ]
}
```

From an AI agent, call it through the [Apify MCP server](https://mcp.apify.com) like any other Actor.

### Output

```json
{
  "calculator": "severance-pay",
  "ok": true,
  "params": { "salaireMensuel": 3000, "ancienneteAnnees": 12, "ancienneteMois": 4 },
  "summary": "Statutory severance pay 9,833.33 € for 12.33 years of service.",
  "result": { "indemniteLegale": 9833.33, "ancienneteTotaleAnnees": 12.33, "salaireReference": 3000, "aucuneIndemniteDue": false },
  "rules": {
    "verifiedOn": "2026 rules",
    "sources": ["https://www.legifrance.gouv.fr/codes/article_lc/LEGIARTI000035644154"]
  },
  "page": "https://calculons.fr/calculateurs/indemnite-licenciement",
  "disclaimer": "Indicative calculation under French law ... not legal, tax or financial advice."
}
```

A wrong call (not charged):

```json
{
  "calculator": "notary-fees",
  "ok": false,
  "error": "\"type\" must be one of: ancien, neuf",
  "expectedParams": ["prix: number, purchase price in euros", "type: \"ancien\" (existing property) | \"neuf\" (new build)"],
  "example": { "prix": 250000, "type": "ancien" }
}
```

### Calculators

Field names are French, as in French payslips and forms. Amounts are in euros, dates are `YYYY-MM-DD`, a `?` marks an
optional field.

| calculator | what it does | params | rules checked |
|---|---|---|---|
| `salary-gross-to-net` | French employee salary: monthly gross to net (before and after income tax withholding), with each employee contribution. | `brutMensuel` number, monthly gross salary in euros<br>`statut` "non-cadre" or "cadre" or "public"<br>`tauxPas?` number 0 to 0.45, income tax withholding rate (default 0)<br>`tempsPlein?` boolean, full time (default true) | 2026 rules |
| `salary-net-to-gross` | French employee salary: find the monthly gross salary that gives a target net (before tax, taxable, or after tax). | `netMensuel` number, target monthly net in euros<br>`statut` "non-cadre" or "cadre" or "public"<br>`cible` "avant-impot" (net before tax) or "imposable" (taxable net) or "apres-impot" (net after withholding)<br>`tauxPas?` number 0 to 0.45, withholding rate, used only when cible = "apres-impot" (default 0) | 2026 rules |
| `income-tax` | French income tax (impôt sur le revenu) 2026 on 2025 income: family quotient (parts), cap, discount (décote), average and marginal rates. | `revenuNetImposable` number, household net taxable income in euros (after the 10 % deduction)<br>`conjoint?` boolean, married or civil partnership, joint taxation (default false)<br>`enfants?` number, dependent children (default 0)<br>`enfantsHandicap?` number, of which disabled children (default 0)<br>`parentIsole?` boolean, single parent, box T (default false)<br>`invalidite?` boolean, disability card, box P (default false) | 2026 rules |
| `notary-fees` | French notary fees (frais de notaire) for buying a property: transfer taxes (DMTO), regulated fees, security contribution, disbursements. | `prix` number, purchase price in euros<br>`type` "ancien" (existing property) or "neuf" (new build)<br>`dmtoRate?` number, departmental transfer tax rate if not the standard one, e.g. 0.0632 (default: engine standard) | 2026 rules |
| `severance-pay` | French statutory severance pay (indemnité légale de licenciement): 1/4 month per year up to 10 years, 1/3 beyond. | `salaireMensuel` number, reference gross monthly salary in euros<br>`ancienneteAnnees` number, full years of service<br>`ancienneteMois?` number 0 to 11, extra months of service (default 0)<br>`motif?` "personnel" or "economique" (default "personnel") | 2026 rules |
| `conventional-termination` | French conventional termination (rupture conventionnelle): statutory minimum indemnity. | `salaireReference` number, reference gross monthly salary in euros<br>`ancienneteAnnees` number, full years of service<br>`ancienneteMois?` number 0 to 11, extra months of service (default 0) | 2026 rules |
| `retirement-severance` | French retirement indemnity (indemnité de départ ou de mise à la retraite): voluntary departure or retirement imposed by the employer. | `salaireMensuel` number, reference gross monthly salary in euros<br>`ancienneteAnnees` number, full years of service<br>`ancienneteMois?` number 0 to 11 (default 0)<br>`type` "volontaire" (employee leaves) or "mise_a_la_retraite" (employer decides) | 2026 rules |
| `fixed-term-end-bonus` | French end-of-contract bonus for a fixed-term or temp contract (prime de précarité, 10 % or 6 %), with indicative paid-leave allowance. | `mode?` "total" (give brutTotal) or "mensuel" (give salaireMensuel and dureeMois) (default "total")<br>`brutTotal?` number, total gross pay of the contract (mode "total")<br>`salaireMensuel?` number, monthly gross salary (mode "mensuel")<br>`dureeMois?` number, contract length in months (mode "mensuel")<br>`taux?` number, 0.1 (default) or 0.06 if a branch agreement provides training | 2026 rules |
| `mileage-allowance` | French mileage allowance scale (barème kilométrique) for income tax real expenses or employer refunds. | `km` number, kilometres driven in the year<br>`cv` number, fiscal horsepower (CV)<br>`typeVehicule?` "voiture" or "moto" or "cyclomoteur" (default "voiture")<br>`electrique?` boolean, electric vehicle, +20 % (default false) | 2026 rules |
| `vat` | French VAT (TVA): excluding tax to including tax and back, at 20 %, 10 %, 5.5 %, 2.1 % or 0 %. | `montant` number, amount in euros<br>`taux` number, 0.2 or 0.1 or 0.055 or 0.021 or 0<br>`sens?` "ht-vers-ttc" (excl. to incl. tax, default) or "ttc-vers-ht" | 2026 rules |
| `vehicle-registration-tax` | French vehicle registration certificate cost (carte grise): regional tax per fiscal horsepower, fixed tax, delivery fee, malus. | `regionId` string, region of the owner's home: auvergne-rhone-alpes, bourgogne-franche-comte, bretagne, centre-val-de-loire, corse, grand-est, hauts-de-france, ile-de-france, normandie, nouvelle-aquitaine, occitanie, pays-de-la-loire, provence-alpes-cote-dazur, guadeloupe, martinique, guyane, la-reunion, mayotte<br>`chevauxFiscaux` number, fiscal horsepower (box P.6)<br>`plus10ans?` boolean, first registered more than 10 years ago, regional tax halved (default false)<br>`electrique?` boolean, electric or hydrogen vehicle (default false)<br>`malus?` number, ecological malus in euros for a first registration in France (default 0) | 2026-10-19 |
| `ecological-malus` | French ecological malus 2026 on new cars: CO2 malus (WLTP) and weight malus, with exemptions and family deduction. | `co2` number, CO2 emissions in g/km (WLTP)<br>`masse` number, mass in running order in kg<br>`energie` "thermique" or "hybride" or "hybride_rechargeable" or "electrique"<br>`enfants?` number, dependent children (deduction from 3) (default 0) | 2026 rules |
| `car-import-cost` | Full cost of importing a car into France (EU or non-EU): VAT if new for tax purposes, customs duty, malus for imported used cars, registration certificate, fees. | `provenance` "ue" or "hors-ue"<br>`vendeur` "particulier" (private seller) or "professionnel" (dealer)<br>`prix` number, price paid in euros (excl. VAT for a car new for tax purposes bought in the EU)<br>`datePremiere` date YYYY-MM-DD of first registration abroad, or "" if never registered<br>`dateFrance?` date YYYY-MM-DD of registration in France (default today)<br>`kilometrage` number, mileage in km<br>`energie` "essence" or "diesel" or "gpl" or "e85" or "micro-hybride" or "hybride" or "hybride-rechargeable" or "electrique"<br>`co2` number, CO2 g/km (WLTP if available)<br>`masse` number, mass in running order in kg<br>`chevauxFiscaux` number, French fiscal horsepower<br>`regionId` string, region of the owner's home: auvergne-rhone-alpes, bourgogne-franche-comte, bretagne, centre-val-de-loire, corse, grand-est, hauts-de-france, ile-de-france, normandie, nouvelle-aquitaine, occitanie, pays-de-la-loire, provence-alpes-cote-dazur, guadeloupe, martinique, guyane, la-reunion, mayotte<br>`droitsReduits?` boolean, non-EU only: preferential origin proven, no 10 % duty (default false)<br>`transport?` number, transport cost in euros (default 0)<br>`plaquesAssurance?` number, temporary plates and insurance (default 0)<br>`coc?` number, certificate of conformity (default 0)<br>`controleTechnique?` number, roadworthiness test (default 0)<br>`fraisDossier?` number, other administrative fees (default 0) | 2026-10-25 |
| `driving-licence-points` | French driving licence points: balance today, date when the 12 points come back, probationary licence, awareness courses. | `probatoire?` null for a full licence, or {dateObtention: "YYYY-MM-DD", aac: boolean (accompanied driving), formation: boolean (extra training)} (default null)<br>`infractions` array of {date: "YYYY-MM-DD" (date the offence became final), points: number, categorie: "c1" or "c2" or "c3" or "c4" or "c5" or "delit", libelle: string}<br>`stages?` array of "YYYY-MM-DD", first day of each awareness course (default \[])<br>`aujourdhui?` date YYYY-MM-DD used as today (default today) | 2026-10-24 |

### Pricing

Pay per event: **$0.005 per successful calculation** ($5 per 1,000), plus $0.00005 per run start. Platform usage is
included. Calls rejected for missing or wrong parameters are free.

### Limits

- French law only (metropolitan France and overseas regions for the car registration cost). Collective agreements
  that improve the statutory amounts are not applied: results are the legal minimums.
- Rules are updated when the law changes (new year scales, finance laws). The date checked is in each result.
- Indicative results, not legal, tax or financial advice. For a binding answer, the official simulators and
  professionals remain the reference.

### En français

Les calculs français que les modèles de langue ratent souvent (salaire brut et net, impôt sur le revenu, frais de
notaire, indemnités de licenciement et de rupture conventionnelle, prime de précarité, barème kilométrique, TVA,
carte grise, malus, import de voiture, points du permis), appelables par un agent IA. Chaque résultat donne ses
sources officielles et renvoie vers la page explicative de [calculons.fr](https://calculons.fr). Seuls les calculs
réussis sont facturés.

# Actor input Schema

## `calculator` (type: `string`):

Which calculation to run. Ignored when "calculations" is given.

## `params` (type: `object`):

Fields of the chosen calculator (French field names, amounts in euros, dates YYYY-MM-DD; a "?" means optional). If a field is missing or wrong, the run returns an item with "expectedParams" and an "example", and nothing is charged. Fields per calculator: salary-gross-to-net: {brutMensuel, statut, tauxPas?, tempsPlein?} ; salary-net-to-gross: {netMensuel, statut, cible, tauxPas?} ; income-tax: {revenuNetImposable, conjoint?, enfants?, enfantsHandicap?, parentIsole?, invalidite?} ; notary-fees: {prix, type, dmtoRate?} ; severance-pay: {salaireMensuel, ancienneteAnnees, ancienneteMois?, motif?} ; conventional-termination: {salaireReference, ancienneteAnnees, ancienneteMois?} ; retirement-severance: {salaireMensuel, ancienneteAnnees, ancienneteMois?, type} ; fixed-term-end-bonus: {mode?, brutTotal?, salaireMensuel?, dureeMois?, taux?} ; mileage-allowance: {km, cv, typeVehicule?, electrique?} ; vat: {montant, taux, sens?} ; vehicle-registration-tax: {regionId, chevauxFiscaux, plus10ans?, electrique?, malus?} ; ecological-malus: {co2, masse, energie, enfants?} ; car-import-cost: {provenance, vendeur, prix, datePremiere, dateFrance?, kilometrage, energie, co2, masse, chevauxFiscaux, regionId, droitsReduits?, transport?, plaquesAssurance?, coc?, controleTechnique?, fraisDossier?} ; driving-licence-points: {probatoire?, infractions, stages?, aujourdhui?}

## `calculations` (type: `array`):

A list of {"calculator": "...", "params": {...}} objects to compute several cases in one run (up to 500, one charge per successful calculation).

## Actor input object example

```json
{
  "calculator": "salary-gross-to-net",
  "params": {
    "brutMensuel": 2500,
    "statut": "non-cadre"
  }
}
```

# Actor output Schema

## `results` (type: `string`):

All calculation items of the run (default dataset).

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "calculator": "salary-gross-to-net",
    "params": {
        "brutMensuel": 2500,
        "statut": "non-cadre"
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("calculons/french-legal-tax-calculators").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "calculator": "salary-gross-to-net",
    "params": {
        "brutMensuel": 2500,
        "statut": "non-cadre",
    },
}

# Run the Actor and wait for it to finish
run = client.actor("calculons/french-legal-tax-calculators").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "calculator": "salary-gross-to-net",
  "params": {
    "brutMensuel": 2500,
    "statut": "non-cadre"
  }
}' |
apify call calculons/french-legal-tax-calculators --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,calculons/french-legal-tax-calculators"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/hTJ2tOW1svyjvvii8/builds/6T5bVcPwaeTGmWNy3/openapi.json
