The Month-End Variables That Actually Bite HR Teams
Most payroll errors in Egypt don't come from ignorance of the law. They come from the edge cases: an employee hired on the 17th, two people working 23 extra hours during Ramadan, a resignation on the last Thursday of the month. Each scenario requires a different formula — and the wrong answer triggers either a labour complaint or an over-payment that eats into margin.
Here's how the main calculations actually work, with real numbers.
Basic Gross Pay and Prorated Salaries for Mid-Month Hires
An employee joins your company on the 17th of a 30-day month. Their agreed monthly salary is EGP 12,000.
- Daily rate: 12,000 ÷ 30 = EGP 400/day
- Working days from the 17th to month-end: 14 days
- Prorated gross: 400 × 14 = EGP 5,600
Egypt's Labour Law does not mandate a specific proration method (calendar days vs. working days), so whichever basis you choose, document it in your salary policy and apply it consistently. Switching methods per employee is what auditors flag.
Overtime: The Two-Rate Trap
Egyptian Labour Law Article 70 sets two overtime rates:
- Daytime overtime (beyond 8 hours): basic hourly rate × 1.35
- Night-shift, Friday, or public holiday overtime: basic hourly rate × 1.70
The trap: many HR teams apply 1.35 to all extra hours. If an employee works a Friday shift and you've logged it at 1.35, you've under-paid by 26% per hour — that's recoverable as back pay if the employee raises a complaint.
Worked example — Basic salary EGP 8,000/month:
- Hourly basic: 8,000 ÷ (8 hours × 26 working days) = EGP 38.46/hour
- 12 daytime overtime hours: 38.46 × 1.35 × 12 = EGP 622.63
- 6 Friday hours: 38.46 × 1.70 × 6 = EGP 392.29
- Total overtime for the month: EGP 1,014.92
For a broader look at how overtime plugs into your attendance setup, the guide on HR attendance and payroll operations covers the device-to-payroll data flow in detail.
Ramadan Hours: A Special Calculation Layer
During Ramadan, the law reduces the working day by one hour. That means the standard 8-hour day becomes 7 hours. If an employee is required to work the full 8 hours, that extra hour is compensated at the daytime overtime rate — not treated as a free contribution to the company.
Some employers absorb this silently. When those employees later see their payslips and notice no overtime line during Ramadan, the complaints arrive quietly but persistently.
Social Insurance Contributions (Egypt)
Egypt's social insurance calculation runs on two wage bases: the variable wage and the fixed wage. As of 2024–2025 fiscal year:
- Employee contribution: 11% of insurable wage
- Employer contribution: 18.75% of insurable wage
- Minimum insurable wage: EGP 2,100/month
- Maximum insurable wage (variable): EGP 12,600/month
An employee earning EGP 15,000 gross — EGP 9,000 fixed, EGP 6,000 variable:
- Fixed base capped at: EGP 9,000 (within ceiling)
- Variable base: EGP 6,000 (within EGP 12,600 ceiling)
- Total insurable wage: EGP 15,000
- Employee deduction: 15,000 × 11% = EGP 1,650
- Employer cost: 15,000 × 18.75% = EGP 2,812.50
If your payroll template still uses pre-2024 ceiling figures, every month's filing is technically incorrect. That gap accumulates.
End-of-Service Gratuity: The Formula Changes at Year 10
Egypt's Labour Law sets gratuity at a minimum of one month's wage per year of service, but the base shifts:
- Years 1–10: gratuity is calculated on the last basic salary
- Year 10+: employees are entitled to 1.5 months per year for every year beyond 10
Example — 13 years of service, last basic salary EGP 10,000:
- First 10 years: 10 × 10,000 = EGP 100,000
- Years 11–13 (3 years at 1.5×): 3 × 10,000 × 1.5 = EGP 45,000
- Total gratuity: EGP 145,000
If resignation is voluntary (not employer-initiated), the entitlement can be reduced — but only under specific conditions outlined in Egypt's current Labour Law framework. Don't apply the reduction automatically; it requires legal review per case.
WPS Export for UAE Operations
If your entity operates in the UAE, the Wage Protection System requires payroll data submitted in a fixed SIF (Salary Information File) format before salary transfer. The fields that trip up HR teams most often:
- Basic pay vs. allowances: total salary must match what's on the labour contract, not last month's actual payout
- IBAN formatting: UAE IBANs are 23 characters; a 22-character entry rejects the entire file
- Frequency code: monthly = M, weekly = W — mixing these across employee records causes partial rejections
WPS rejections don't pause your bank transfer; they flag your entity with the Ministry of Human Resources and can trigger fines within 30 days if the salary isn't re-submitted. Build a validation step before export, not after.
Salary Advances and 13th-Month Bonuses
Salary advances need a signed deduction authorization. Without it, recovering the amount from the next payslip creates a labour dispute risk. The deduction also cannot reduce net pay below the minimum wage in a single month — if the advance is large, structure recovery across 2–3 months.
13th-month bonuses (common in Egypt's private sector) are only mandatory if they're written into the employment contract or salary letter. Once they appear in writing three consecutive years, courts have treated them as acquired rights. If you intend them to be discretionary, the contract language needs to say that explicitly.
Common Payroll Mistakes HR Teams Make Repeatedly
- Using the wrong overtime base — applying gross salary instead of basic salary to calculate the hourly rate inflates overtime by 20–40%
- Missing the mid-month proration method — switching between calendar-day and working-day bases per hire creates inconsistency audit flags
- Not updating social insurance ceilings — NSIA adjusts ceilings annually; last year's spreadsheet is wrong by default
- Logging Ramadan hours as standard time — the extra hour is compensable; not paying it is a liability
- Miscounting gratuity years — service start date vs. contract date vs. probation end date must be consistent across all records
- WPS SIF validation skipped — file format errors discovered after submission cost more to fix than a 10-minute pre-check would
Where Software Removes the Manual Error Surface
Tools like Attendux handle the formula layer — overtime rate switching, social insurance ceiling application, proration by hire date, and WPS SIF generation — so the HR team's job becomes reviewing outputs rather than building them from scratch. The difference in a 200-person company is usually measured in hours per payroll cycle, not minutes. We've seen teams go from 18 days of reconciliation effort down to 3 when the attendance data feeds directly into payroll without a re-entry step.
That said, software doesn't replace the judgment calls: the voluntary resignation gratuity reduction, the advance recovery schedule, the Ramadan shift policy. Those still need a human decision — the system just executes it correctly once you've made it.
For a deeper look at how biometric attendance data connects to the payroll calculation layer, the biometric and overtime setup guide walks through the device-to-payslip configuration.
Ready to Talk?
If your payroll cycle still involves manually cross-checking five spreadsheets on the last Wednesday of the month, we're happy to walk through what a cleaner setup looks like for your headcount and entity structure — Egypt, UAE, or both. Reach out to the ProgMine team and tell us where the current process breaks down.