Skip to content
Brian Jiménez Landa
FiniquiCal, completed in Jul 2025

Mexican severance pay, calculated concept by concept instead of by hand

A web calculator for Mexican final pay and dismissal settlements. A FastAPI service computes each pay concept, and a React app shows the breakdown and exports it as a PDF report. I built both in July 2025.

Severance calculation form and breakdown

The problem

When a job ends in Mexico, the employer owes final pay (finiquito). After a dismissal without cause, it also owes a settlement (liquidación). The amounts come from concepts defined in the Ley Federal del Trabajo: pro-rated vacation, the vacation premium, the pro-rated year-end bonus, the seniority premium and indemnity. Each one depends on time worked and the daily wage. Worked out by hand, the math is slow and easy to get wrong.

What I built

  • I built a FastAPI service that takes the time worked and the daily wage and returns an amount for each concept.
  • The app has two tabs: final pay and dismissal settlement.
  • Each concept gets its own line: pro-rated vacation, the 25% vacation premium, the pro-rated year-end bonus, the seniority premium and indemnity.
  • I built the front end in React with Material UI. Past calculations stay in a saved history.
  • Each calculation exports to a PDF report with the employee, the company, the generation date and each amount.

Screens

  • Final pay broken down concept by concept (names blurred).
  • Saving and downloading the result.
  • The generated report (company and employee blurred).

How it works

The calculation lives in the Python API. The React app sends the inputs and renders the breakdown it gets back.

I itemized the result instead of returning one total. A single total can't be checked. With one line per concept, a reviewer can check each amount on its own and catch a wrong input before the report goes out.

Results

2
cases covered: final pay and dismissal settlement
5
pay concepts, each on its own line

Full stack

Python, FastAPI, React, Material UI