CTC Report & Salary Head Calculations
This document provides a detailed breakdown of Cost to Company (CTC) logic, salary head calculations, their dependencies, and dynamic behaviors.
1. Salary Head Calculation Flow
Salary components are generally classified into Earnings and Deductions. The calculation flow dictates how a configured Amount in the Head Master transforms into the final paid amount.
Dynamic Calculation Behavior Matrix (Excel Logic)
| Component Category | Presence Dependent (true) | Presence Dependent (false) | Statutory Gross Impact |
|---|---|---|---|
| Fixed Allowance (e.g., Basic, HRA) | (Amount / Month Days) * Att. Days | Pays flat Amount regardless of attendance | If pfGrossPart=true or esiGrossPart=true, added to respective pools. |
| Overtime (OT) | N/A (Calculated hourly/daily) | N/A | Usually added to ESI Gross if ESIonOT=true in Unit. |
| Arrears | N/A (Manual entry/Auto-derived) | N/A | Subjected to Arrear PF and Arrear ESI based on configurations. |
Step-by-Step Salary Head Processing
- Base Extraction: The system fetches the configured
Amountfor a head from the Employee Head Master or Salary Head Master. - Proration Check: If
presenceDependentistrue, the amount is prorated:Amount * (attendanceDays / monthDays). - Gross Aggregation: The prorated amount is added to
GrossPay. - OT Evaluation: If
otGrossistrue, the amount contributes to theRateGrossused to determine the hourly/daily OT rate. - Deduction Processing: Standard deductions (Loans, Advances) are subtracted from
GrossPay. Statutory deductions (PF, ESI, PT) are calculated dynamically based on the aggregated pools (PF Gross, ESI Gross). - Net Pay Generation:
Net Pay = Gross Pay + OT + Arrears - Total Deductions.
2. CTC (Cost to Company) Logic
The CTC represents the total cost incurred by the employer for the employee, encompassing direct compensation (Net Pay), taxes, and employer-side statutory contributions.
CTC Formula Components
The standard formula for calculating the Monthly CTC is:
CTC = Total Gross Earnings + Employer PF Contribution + Employer ESI Contribution + Employer LWF + Other Employer BenefitsDetailed Component Breakdown
1. Total Gross Earnings (totalEarnings)
- Sum of all earning heads (Basic, HRA, DA, Special Allowances).
- Formula:
Σ (All Earning Heads)
2. Employer PF Contributions
The employer's 12% PF contribution is split across multiple accounts based on the pensionWages and pfGrossActual.
- EPS (Pension - AC10):
Pension Wages * 8.33%(Subject to max wage ceiling of ₹15,000, max contribution = ₹1,250). - EPF (Employer Share - AC1):
Total Employer PF (12%) - EPS (AC10). - EDLI (AC21):
Pension Wages * 0.5%(Max ₹75). - Admin Charges (AC2):
PF Gross Actual * 0.5%. - Total Employer PF Impact:
AC1 + AC10 + AC2 + AC21.
3. Employer ESI Contributions
- Formula:
ESI Gross Actual * 3.25%(Stored asesiEmr). - Condition: Only calculated if ESI is applicable for the employee.
4. Employer LWF & Professional Tax
- LWF (Employer Share): State-specific slab calculation (Stored as
lwfEmr). - Note: Professional Tax is an employee deduction and does not add to the employer's CTC, but it reduces the employee's Net Pay.
5. Additional Benefits
- GPA (Group Personal Accident) / GTLI: Fixed monthly premium amounts configured at the Unit or Designation level.
- Trust Contributions: Custom employer trust funds (if applicable).
Final CTC Assembly Example
| Component | Calculation Logic | Example Amount (₹) |
|---|---|---|
| Basic | Prorated Earning | 15,000.00 |
| HRA | Prorated Earning | 7,500.00 |
| Total Gross | Basic + HRA | 22,500.00 |
| Employer PF (AC1+AC10) | 12% of 15,000 (Basic) | 1,800.00 |
| PF Admin Charges | 0.5% of 15,000 | 75.00 |
| EDLI (AC21) | 0.5% of 15,000 | 75.00 |
| Employer ESI (3.25%) | 3.25% of 22,500 | 731.00 |
| Employer LWF | Flat rate as per State | 10.00 |
| Total CTC | Gross + Employer Contrib. | 25,191.00 |
3. Dynamic Calculation Scenarios
Scenario A: Employee Crosses ESI Limit Mid-Year
- Behavior: If an employee's Gross Pay exceeds ₹21,000, ESI deductions technically stop. However, the ESI cycle runs from Apr-Sep and Oct-Mar.
- System Logic: The
esiBasedOnrule (Asper Rule) checks cumulative grosses. If the employee was eligible at the start of the contribution period, the system may dynamically continue deductions on a capped gross until the cycle resets, adhering to statutory ESI guidelines.
Scenario B: Formula-Driven Allowances
- Behavior: Some heads are not fixed amounts but derive from others (e.g.,
HRA = 50% of Basic). - System Logic: The payroll engine uses the
evaluateFormulautility. It first calculates independent components (like Basic). When calculating HRA, it replaces the formula variables dynamically:safeEvaluate("Basic * 0.5").
Scenario C: Overtime Impact on Statutory Gross
- Behavior: An employee does 10 hours of OT.
- System Logic:
- If Unit
ESIonOTisfalse, the OT amount simply adds to Net Pay. - If
ESIonOTistrue, the OT amount is added toesiGrossActual. This dynamically increases the employee's ESI deduction (0.75% of OT) and the employer's ESI contribution (3.25% of OT), directly affecting the final Net Pay and the monthly CTC.
- If Unit