Output DeskOutput Desk Payroll Support
Payroll Processing

How Payroll Is Calculated

The order and rules the engine follows when it builds a payslip.

WherePayroll›Payroll Batches›Generate

⚡At a glance

  • Employees: active, joined on or before period end, in the selected pay group (and branch, if chosen).
  • Salary structure: the latest structure with effective date on or before period end.
  • Attendance factor = paid days / total days. No attendance row = full month.
  • Components run in processing priority order; only components in the employee's assignment are computed. Zero or negative results are dropped.
Payroll / Payroll Batches / Generate
Payslip with earnings, deductions and TDS breakdown
📷Screenshot placeholderPayslip with earnings, deductions and TDS breakdownimages/payroll-engine-1.png
Payslip with earnings, deductions and TDS breakdown

📋Key fields

Fixed (F)Amount x attendance factor when pro-rata is on.
Percentage (P)Rate x base component or CTC. With declared CTC, treated as pre-computed, except gross-based items (EPF / SOCSO / EIS / CPF) and ESI, which always recompute.
Balance (B)Monthly CTC minus employer-in-CTC minus earnings so far.
Hourly (H)Rate x OT hours. Never pro-rated.
Formula (R)Statutory rules handled by the country tax engine (PT, LWF, TDS, PCB, PAYE and so on).
BonusBatch-selected approved bonuses added as BONUS, always taxable, never pro-rated.
LoansLOAN_EMI for pending installments of active loans; ADV_EMI for advances. Loan interest is a perquisite for tax only.
TDS (India)Projected annual taxable = YTD + this month x remaining months + prior employer + loan perquisite; regime deductions; slabs, rebate, marginal relief, 4% cess; monthly TDS = remaining tax / remaining months.

🧮Worked examples

One payslip end to end (India, April 2026)

Basic 20,000, HRA 40%, Conveyance 1,600 (no pro-rata), Special Allowance 18,600 fixed, 26 working days, 2 LOP (factor 24 / 26). Karnataka. Loan EMI 5,000. Bonus 5,000 selected.

BASIC 20,000 x 24/2618,462
HRA 40% of 18,4627,385
Conveyance1,600
Special Allowance 18,600 x 24/2617,169
BONUS5,000
Gross49,616
PF EE 12% of min(18,462, 15,000)1,800
ESI0 (gross above 21,000)
PT Karnataka200
LOAN_EMI5,000
TDS (projected, new regime)about 2,100
Total deductions9,100
Net pay40,516
Employer PF (EPS 1,250 + EPF 550)1,800
CTC this month51,416

⚠️Good to know

  • PF wage and ESI gross are built from components flagged Include in EPF / ESI as they are processed.
  • ESI rounds up; everything else rounds normally.
  • Net pay never goes below zero. CTC = earnings + employer components flagged Include in CTC.
  • Full & Final is a separate flow and does not run through the normal engine.