1. Home
  2. Docs
  3. HRM
  4. Salary
  5. How salary amount is calculated.

How salary amount is calculated.

πŸ” What the System Checks Before Calculating Salary

Before salary is generated, the system verifies the following:

βœ… Employee must have at least one valid salary record with an effective date before or within the selected month.

βœ… Employee should not have any pending leave requests for the selected salary month.

βœ… In company settings, it must be clear whether salary is calculated using Working Days or Calendar Month Days.

βœ… The user must be marked as an Employee in the system.

βœ… If Leave Encashment is enabled, the system checks if the employee is eligible.

βœ… Any applicable Allowances or bonuses should already be added.

βœ… The employee must have been active during the selected month (i.e., joined before the month ends and not resigned before it starts).

βœ… All leaves must be finalized (approved/rejected) for accurate calculation.

βœ… If TDS is enabled, the yearly amount should be entered so it can be split month-wise.

πŸ“† Paid Days Calculation

  • Paid days are calculated based on either:
    • Total days in the month (calendar-based), or
    • Working days (if weekends and holidays are excluded based on company setting)
  • If an employee joins or resigns mid-month, the system calculates paid days on a pro-rata basis.
  • Unpaid leaves are deducted from total paid days.

πŸ“Š Salary Calculation Formula

Each salary component is calculated proportionally using the number of paid days:

ComponentHow It’s Calculated
Basic(Basic % of Monthly CTC) Γ— (Paid Days Γ· Total Days)
HRA(HRA % of Monthly CTC) Γ— (Paid Days Γ· Total Days)
ConveyanceFixed Amount Γ— (Paid Days Γ· Total Days)
Variable Pay(Variable % of Monthly CTC) Γ— (Paid Days Γ· Total Days)
Other ComponentsBased on fixed amount or percentage logic
Leave EncashmentEncashable Days Γ— (Basic Γ· Total Days)

πŸ“‰ Deductions

Deduction TypeLogic Applied
TDSYearly amount divided over remaining months (Ref – How TDS is calculated?)
Professional TaxBased on salary slab defined in system
PF (Employee + Employer)Fetched from Salary Data entered from User or Employee Module
ESIC (Employee + Employer)Fetched from Salary Data entered from User or Employee Module
Unpaid LeavesDeducted as per per-day salary formula

For PF, ESIC etc referΒ Setting Salary Data for Employees

🧾 Final Salary Calculation

Gross Salary     = Total of all earnings
Total Deductions = Total of all deductions
Net Salary       = Gross Salary - Total Deductions

πŸ“Œ Special Scenarios the System Handles

  • πŸ”„ If there are multiple salary records, the latest one (based on effective date) is used.
  • πŸ•“ If employee joins or resigns mid-month, salary is calculated for days worked.
  • πŸ“‰ If an employee has taken extra/unapproved leaves, those days are deducted.
  • 🎯 If variable pay or bonus is marked for that month, it will be added.

πŸ’Ύ What Is Saved in the System

  • Full salary breakup per employee
  • Salary month and year
  • Salary basis (working days or calendar days)
  • Audit trail / change logs
  • TDS challan file (if TDS applied)

βœ… Tips

  • Per-day salary calculation is always based on calendar month days, even if salary basis is β€œworking days.”
  • In addition to Basic, HRA, Conveyance, and Variable Pay, system also calculates: Travel, Commission, Ex-Gracia, and Other Allowances.
  • PF and ESIC deductions are rule-based:
    • PF: only if Basic ≀ β‚Ή15,000.
    • ESIC: only if Gross Salary ≀ β‚Ή21,000.
  • Overused leave is deducted at full per-day salary.
  • After calculation, allowances are automatically marked Paid.
  • A TDS Challan entry is also created/updated for that salary.
  • System saves a salary changelog comparing old vs. new values when regenerated.