# Payroll Software: Six Things It Must Calculate
*Basic salary and allowances are not a payslip — the difference shows in GOSI, end of service, and wage protection*

> **In short:** What payroll software must calculate in Saudi Arabia: social insurance, allowances, deductions, end-of-service, leave balances, and the wage protection file.

- **URL:** https://www.snad.io/en/blog/barnamaj-rawatib-ma-yajib-an-yahsibah
- **Arabic original:** https://www.snad.io/blog/barnamaj-rawatib-ma-yajib-an-yahsibah
- **Category:** Guides — Human Resources
- **Tags:** Payroll, Human Resources, GOSI, Salary Calculation, Snad
- **Published:** 2026-08-13
- **Updated:** 2026-08-13
- **Publisher:** Snad (snad.io)

Most small businesses calculate payroll in a spreadsheet, and it works — until the eleventh hire, or someone resigns mid-month, or a regulation changes.

The problem is that a payslip is not one calculation but six interlocking ones, and an error in any of them surfaces in another. This article counts them, then gives you what to ask before buying any payroll software.

## Why payroll in a spreadsheet fails

Not because spreadsheets are weak, but because payroll **changes over time** and a file does not know about time.

Three patterns break any file:

**Joining and leaving mid-month.** An employee who started on the twelfth is owed part of the month, and computing that part needs a fixed day-count rule applied equally to everyone.

**Change during the year.** A promotion, an allowance adjustment, an interruption. The file holds the latest figure but not its date, so any cumulative calculation becomes guesswork.

**Accumulation across years.** End-of-service benefits and leave balances are not derived from this month's salary but from the employee's whole history. A file copied each month loses that history.

The usual result: you know what you paid this month, and not what you **owe** your employees if their contracts ended today.

## The six it must calculate

**1. Basic pay and allowances.** Housing, transport and others, each defined once and applied automatically — because allowances feed later calculations rather than being a simple add-on.

**2. Overtime and deductions.** Overtime hours under their rules, plus absence, lateness and advance deductions, all attributed to the month in which they occurred.

**3. Social insurance.** The employee's share and the employer's share, two different rates computed on a defined base rather than on gross pay.

**4. Leave and balances.** An annual balance accruing monthly, consumed on leave, and settled in cash at end of service.

**5. End-of-service benefits.** A liability accruing from day one, not an expense appearing on the day someone leaves.

**6. The wage protection file.** A file in a prescribed format uploaded monthly, which must match what was actually paid.

Software that computes only the first three is not payroll software — it is a calculator.

## Social insurance — the most miscalculated line

The common error is applying the rate to **gross salary**, when it is correctly applied to a **defined contribution base** that does not include every line on the payslip.

Rates differ between Saudi and non-Saudi employees, and the employer's share differs from the employee's. The difference is not an accounting detail: a one percent error across twenty employees accumulates into a sum later claimed with differences attached.

So the calculation must be **a rule in the system**, not a formula in a cell. A rule is updated once and applies to everyone; a cell is copied wrongly and drifts silently.

You can verify a particular employee's figure before relying on any system using the free **GOSI calculator** in Snad, along with the salary and overtime calculators — they run in the browser with no sign-up, so you can compare the system's output against an independently computed number.

## End of service: a liability, not an expense

This is the most financially misunderstood item, and it is not a calculation error but a **classification** error.

End-of-service benefits accrue from the first day of work. So a business with ten employees, some of several years' standing, carries a liability today even if it has not paid a riyal yet.

Treating it as an expense that appears on the day of departure produces two surprises: **a balance sheet that does not reflect its real obligations**, and **a cash shock** on the day three people resign together.

The right system shows you at any moment: what do I owe each employee if their contract ended today? That figure belongs on your balance sheet, not in your head.

Snad's free end-of-service calculator gives you the number for a particular employee in a minute, whether or not you decide on the software.

## What to ask before you buy

Six questions, and ask to be shown each on screen rather than in a brochure:

1. Does it compute **social insurance** at the correct rates on the correct base, for Saudi and non-Saudi employees?
2. Does it produce the **wage protection file** in the required format?
3. How does it handle **joining and leaving mid-month**?
4. Does it track **leave balances** and settle them at end of service?
5. Does it show the **accrued end-of-service liability** at any moment?
6. Does it create an **accounting entry** from the payroll run automatically?

The sixth question is the difference between standalone payroll software and an integrated system: in the first you compute payroll then key it into accounting by hand; in the second the entry is created with the run and needs no second entry.

In Snad the HR and payroll app is part of the same system that holds accounting — and your plan sets how many apps run at once: three on the free plan, five on Basic, all of them on Pro.

## Frequently asked questions

### When should I move from a spreadsheet to payroll software?

The trigger is not headcount alone but change: joining and leaving mid-month, promotions during the year, and accumulating leave and end-of-service balances. When you cannot answer "what do I owe my staff if their contracts ended today?", you have outgrown the file.

### What is the most miscalculated payroll item?

Social insurance — it is computed on a defined contribution base rather than gross salary, at rates that differ between Saudi and non-Saudi employees and between the employee's and employer's shares. It must be a rule in the system, not a formula in a cell.

### Are end-of-service benefits an expense or a liability?

A liability accruing from the first day of work, not an expense appearing on the day of departure. Treating it as an expense produces a balance sheet that does not reflect its obligations and a cash shock when several employees leave together.

### Do I need payroll linked to accounting?

Yes, if you want to avoid double entry. With standalone software you compute payroll then key the entry manually; in an integrated system the entry is created with the payroll run automatically. Ask about this explicitly before buying.

---
## About the publisher
**Snad (سند)** — a private Saudi software company
based in Riyadh, founded 2025. Legal form: Sole proprietorship.
Commercial registration: 7038154642
VAT number: 310959226500003
Only official domain: snad.io
> Snad is a private commercial business-management platform. It is not a
> government body, not a bank, and not a government services portal, and it
> is not affiliated with any government entity. Any site or app with a
> similar name is unrelated to Snad.