Aguinaldo (13th-Month Salary)¶
Calculate and manage the mandatory annual bonus for employees in Latin American countries. The aguinaldo is equivalent to one month’s average salary, prorated for partial years.
Overview¶
Aguinaldo provides:
- Country-Specific Benefit Years — Different start/end dates per country
- Automatic Calculation — Pulls payslip data to compute gross/net amounts
- Monthly Breakdown — Detailed earnings history across the benefit year
- Alimony Deductions — Court-ordered deductions handled automatically
- Audit Trail — Step-by-step calculation breakdown for compliance
- Termination Support — Proportional calculation when employees leave
What is Aguinaldo?¶
The aguinaldo (also called “decimo tercer mes” or “13th-month salary”) is a mandatory annual bonus paid to employees in most Latin American countries. It represents one month’s average salary, prorated for the number of months worked during the benefit year.
Supported Countries¶
| Country | Benefit Year Start | Benefit Year End | Default Proportion |
|---|---|---|---|
| Costa Rica | Dec 1 | Nov 30 | 100% |
| Mexico | Dec 1 | Nov 30 | 100% |
| Panama | Dec 1 | Nov 30 | 100% |
| Colombia | Oct 1 | Sep 30 | 100% |
| Ecuador | Dec 1 | Nov 30 | 100% |
| Honduras | Dec 1 | Nov 30 | 100% |
| El Salvador | Dec 1 | Nov 30 | 100% |
| Guatemala | Dec 1 | Nov 30 | 100% |
| Uruguay | Dec 1 | Nov 30 | 100% |
| Paraguay | Dec 1 | Nov 30 | 100% |
| Chile | Dec 1 | Nov 30 | 100% |
| Peru | Dec 1 | Nov 30 | 100% |
Colombia Difference
Colombia uses a different benefit year (Oct 1 – Sep 30) compared to other countries (Dec 1 – Nov 30).
Calculation Formula¶
Step 1: Determine Benefit Year¶
Based on the employee’s country and the reference date (current date or termination date), determine the benefit year period.
Step 2: Collect Payslips¶
Gather all payslips within the benefit year period. Each payslip contributes:
- Gross Earnings — Base salary, overtime, commissions, bonuses
- Overtime Pay — Additional overtime compensation
- Bonus Pay — Performance, commission, referral bonuses
Step 3: Monthly Breakdown¶
Group payslips by calendar month and accumulate:
Step 4: Calculate Base Amount¶
Step 5: Proportional Factor¶
For employees who worked part of the benefit year:
Days Worked = MAX(Hire Date, Benefit Year Start) to Effective End Date
Months Worked = Days Worked / 30
Proportional Factor = MIN(1.0, Months Worked / 12)
Step 6: Gross Aguinaldo¶
This equals one month’s average salary, prorated for partial years.
Step 7: Alimony Deduction¶
Sum all active alimony orders whose effective period overlaps the benefit year:
Only Court-Ordered Alimony
Only court-ordered alimony (pensiĂłn alimentaria) is permitted as a deduction. No CCSS, no income tax deductions are applied to aguinaldo.
Step 8: Net Aguinaldo¶
Calculation Types¶
Annual Payment¶
Standard year-end aguinaldo calculation. The default and most common type.
Termination Proportional¶
Prorated aguinaldo when an employee leaves before the benefit year ends. Uses the termination date as the effective end date.
Using the Calculator¶
Calculating Aguinaldo¶
- Navigate to the Aguinaldo tab in Payroll
- Select an employee
- Choose the Benefit Year (current year or previous years)
- Click Calculate
Results Display¶
The calculator shows:
| Section | Description |
|---|---|
| Benefit Period | Start and end dates of the benefit year |
| Months Worked | Number of months in the benefit year |
| Proportional Factor | Percentage of the year worked |
| Base Amount | Total earnings across the benefit year |
| Gross Aguinaldo | Calculated before deductions |
| Alimony Deduction | Court-ordered deductions (if any) |
| Net Aguinaldo | Final amount to be paid |
Monthly Earnings Breakdown¶
A detailed table showing each month’s earnings:
| Column | Description |
|---|---|
| Month | Calendar month |
| Gross Earnings | Base salary + overtime |
| Overtime Pay | Overtime compensation |
| Bonuses | Performance/commission bonuses |
| Total | Sum of all earnings for the month |
Only months with earnings > 0 are displayed.
Formula Used¶
The exact formula string used for the calculation is displayed for audit purposes.
Alimony Orders¶
Managing Alimony Orders¶
- Navigate to Settings → Company Profile
- Add a new alimony order:
| Field | Description |
|---|---|
| Employee | Employee receiving the order |
| Court Order Reference | Legal reference number |
| Amount | Monthly deduction amount |
| Effective From | Start date |
| Effective To | End date (optional) |
| Status | Active, Completed, or Cancelled |
Impact on Aguinaldo¶
- Only Active orders are included in calculations
- Orders must overlap the benefit year period
- The deduction is subtracted from the gross aguinaldo
- Net aguinaldo cannot be negative (floored at 0)
Audit Trail¶
Every calculation generates a 9-step audit log:
| Step | Name | Description |
|---|---|---|
| 1 | Determine Benefit Year | Country-specific benefit year period |
| 2 | Filter Payslips | Collect payslips within the period |
| 3 | Monthly Breakdown | Group by month and accumulate |
| 4 | Calculate Base Amount | Sum all earnings |
| 5 | Proportional Factor | Proration calculation |
| 6 | Gross Aguinaldo | Monthly average Ă— proportion |
| 7 | Alimony Deduction | Sum active orders |
| 8 | Net Aguinaldo | Final calculation |
| 9 | Formula Summary | Human-readable formula string |
The audit trail is stored in payroll_aguinaldo_calculations and can be viewed for compliance verification.
What’s Next¶
- Payroll Runs — Execute payroll with aguinaldo integration
- Holidays — Manage public holidays and holiday pay
- Tax Compliance — Configure tax rules for 12 countries
Still questions? Ask on Discord or explore tutorials