Payroll

How to calculate salary from attendance: formula, LOP and worked examples

Turn a month of attendance into a correct salary: which days are paid, how to count loss of pay and half days, which per-day method to use, and the legal limits on deductions.

  • Hajiri Team
  • Updated 3 December 2026
  • 5 min read
Payroll guide

Salary from attendance comes down to one formula: pay the employee for every payable day, and deduct only the days of loss of pay (LOP). The work is in deciding which days are payable and which per-day rate to use. This guide walks through both, with a full example.

The formula

Per-day salary = Monthly gross salary ÷ Divisor LOP days = Unpaid absences + (Unpaid half days × 0.5) Salary earned = Monthly gross salary − (Per-day salary × LOP days)

The divisor is the number your company uses to turn a monthly salary into a daily one. There are three common choices, covered below. Whichever you pick, write it in your salary policy or appointment letter and use it every month.

Step 1: Sort every day of the month

Go through the attendance record and put each day in one bucket.

Day type Paid? Counts as LOP?
Present (full day) Yes No
Half day Half 0.5 day, unless covered by half-day leave
Weekly off (e.g. Sunday) Yes No
Paid holiday Yes No
Approved paid leave (casual, sick, earned) Yes No
Approved unpaid leave No Yes, 1 day
Absent without leave No Yes, 1 day
Late mark Per your policy Only if your policy converts late marks to half days

Weekly offs and holidays are paid for monthly-salaried staff. The question is only whether an absence is covered by leave.

Step 2: Choose your per-day method

Method Per-day salary Good for Watch out for
Calendar days Gross ÷ days in that month (28–31) Monthly-salaried office staff Per-day value changes every month
Fixed 30 days Gross ÷ 30 Simple, same rate every month In 31-day months, one extra day of value is unaccounted for
Fixed 26 days Gross ÷ 26 Six-day-week workforces Higher per-day value, so each LOP day costs more

The 26-day method has a legal basis: the Code on Wages (Central) Rules, 2026 convert a daily minimum wage to a monthly rate by multiplying by 26, and to an hourly rate by dividing by 8.

The legal limit on deductions. Section 20 of the Code on Wages says a deduction for absence can't be a larger share of the month's wages than the period of absence is of the period the employee was required to work. In plain terms: 2 days absent out of 26 required working days means you can deduct at most 2/26 of the month's wages. Total deductions in a wage period also cannot exceed 50% of wages.

Step 3: Worked example

Employee: monthly gross ₹24,000. Month: November 2026, 30 days, 6-day week with Sundays off.

November 2026 has 5 Sundays, so there are 25 working days. The attendance record shows:

Day type Days
Present, full day 21
Half days (no leave applied) 2
Casual leave, approved 1
Absent without leave 1
Total working days 25
Sundays (weekly off) 5

LOP days = 1 absent + (2 half days × 0.5) = 2 days.

Now the salary under each method:

Method Per-day salary LOP deduction Salary earned
Calendar days (÷ 30) ₹800.00 ₹1,600.00 ₹22,400.00
Fixed 30 days (÷ 30) ₹800.00 ₹1,600.00 ₹22,400.00
Fixed 26 days (÷ 26) ₹923.08 ₹1,846.15 ₹22,153.85

The same two LOP days cost the employee ₹246 more under the 26-day method. That's why the divisor must be written down and applied the same way to everyone.

Check against section 20: the employee was required to work 25 days and missed 2, so the deduction may not exceed 2/25 of ₹24,000, which is ₹1,920. All three methods stay within it.

Step 4: Apply statutory deductions and pay on time

After salary earned, deduct statutory contributions in this order and issue a payslip:

  1. Provident fund (PF): calculated on PF wages (basic + DA, plus any allowances above the 50% limit under the new definition of wages).
  2. ESI: for covered employees, the employee share is 0.75% of wages, with 3.25% paid by the employer.
  3. Professional tax, where your state levies it.
  4. TDS on salary, if taxable income crosses the limit.

Monthly wages must be paid before the end of the seventh day of the following month, and employers must give wage slips, electronic or printed, on or before payment.

Let attendance turn into payroll by itself

Hajiri counts present days, half days, leave and loss of pay from WhatsApp check-ins, then calculates salary and payslips. No spreadsheet in between.

Book a free demo See pricing

Five mistakes that make salaries wrong

  1. Deducting weekly offs for absent employees. Unless your policy says otherwise, a Sunday between two working days stays paid.
  2. Counting half days as full LOP. Two half days are one LOP day, not two.
  3. Switching divisors month to month. Pick one method and stick with it.
  4. Using a register filled in at month end. Back-filled attendance is where proxy marks and disputes start. Daily, time-stamped records hold up better.
  5. Forgetting leave balances. If an employee had casual leave left, an absence may be leave, not LOP. Check balances before deducting.

How Hajiri calculates it

In Hajiri, employees check in and out on WhatsApp with a selfie and location. At month end, Hajiri already knows each person's present days, half days, approved leave and LOP. It applies your chosen divisor, calculates salary and generates payslips. When an employee disputes a deduction, the record shows exactly when they checked in and from where.

Help & Support

Frequently Asked Questions

Hajiri expert
Talk to our experts and get all your questions answered!
Chat with us on WhatsAppTalk to an expert

Divide the monthly gross salary by your company's divisor: the number of days in the month, a fixed 30, or a fixed 26. For a ₹24,000 salary, that's ₹800 a day on a 30-day basis or ₹923.08 on a 26-day basis.

For monthly-salaried employees, weekly offs and paid holidays are paid days. Only unpaid absences and unpaid leave reduce salary, unless your written policy says otherwise.

A half day without leave counts as 0.5 day of loss of pay. Two unpaid half days equal one LOP day.

Yes, it's a common method, and the Code on Wages rules use 26 days to convert daily minimum wages into a monthly rate. Whatever divisor you use, the deduction for absence must stay within the proportion allowed by section 20 of the Code on Wages.

Under section 17 of the Code on Wages, monthly wages must be paid before the end of the seventh day of the following month. Wages due to someone who leaves must be paid within two working days.