--- Payroll Engine Sandbox Test ---
Initial Engine Memory Context:Array
(
[basic] => 200000
[gross] => 200000
[days] => 22
[hours] => 176
[total gross] => 200000
[total tax relief] => 30000
[chargeable income] => 170000
)
Evaluating Component: 'Annual Basic Salary'
Calculation Type: percent_of_gross
Raw Formula Stored: N/A
Skipping engine processing (Not configured as a dynamic string formula).
Evaluating Component: 'Annual Housing'
Calculation Type: percent_of_gross
Raw Formula Stored: N/A
Skipping engine processing (Not configured as a dynamic string formula).
Evaluating Component: 'Annual Transport'
Calculation Type: percent_of_gross
Raw Formula Stored: N/A
Skipping engine processing (Not configured as a dynamic string formula).
Evaluating Component: 'Housing'
Calculation Type: formula
Raw Formula Stored: [Annual Housing] / 12
1. Step-by-Step Translation:
• Found Tag: [Annual Housing] -> Normalized to: annual housing
⇒ WARNING: Tag not found in memory map! Replaced with 0
2. Final Mathematical String for PHP Eval: 0/12
3. Calculated Output Result: ₦0.00
Evaluating Component: 'Transport'
Calculation Type: formula
Raw Formula Stored: [Annual Transport] / 12
1. Step-by-Step Translation:
• Found Tag: [Annual Transport] -> Normalized to: annual transport
⇒ WARNING: Tag not found in memory map! Replaced with 0
2. Final Mathematical String for PHP Eval: 0/12
3. Calculated Output Result: ₦0.00
Evaluating Component: 'Annual Meal'
Calculation Type: percent_of_gross
Raw Formula Stored: N/A
Skipping engine processing (Not configured as a dynamic string formula).
Evaluating Component: 'Meal'
Calculation Type: formula
Raw Formula Stored: [Annual Meal] / 12
1. Step-by-Step Translation:
• Found Tag: [Annual Meal] -> Normalized to: annual meal
⇒ WARNING: Tag not found in memory map! Replaced with 0
2. Final Mathematical String for PHP Eval: 0/12
3. Calculated Output Result: ₦0.00
Evaluating Component: 'Annual Entertainment'
Calculation Type: percent_of_gross
Raw Formula Stored: N/A
Skipping engine processing (Not configured as a dynamic string formula).
Evaluating Component: 'Entertainment'
Calculation Type: formula
Raw Formula Stored: [Annual Entertainment] / 12
1. Step-by-Step Translation:
• Found Tag: [Annual Entertainment] -> Normalized to: annual entertainment
⇒ WARNING: Tag not found in memory map! Replaced with 0
2. Final Mathematical String for PHP Eval: 0/12
3. Calculated Output Result: ₦0.00
Evaluating Component: 'Annual Grooming'
Calculation Type: percent_of_gross
Raw Formula Stored: N/A
Skipping engine processing (Not configured as a dynamic string formula).
Evaluating Component: 'Grooming'
Calculation Type: formula
Raw Formula Stored: [Annual Grooming]/12
1. Step-by-Step Translation:
• Found Tag: [Annual Grooming] -> Normalized to: annual grooming
⇒ WARNING: Tag not found in memory map! Replaced with 0
2. Final Mathematical String for PHP Eval: 0/12
3. Calculated Output Result: ₦0.00
Evaluating Component: 'Annual Other Allowances'
Calculation Type: percent_of_gross
Raw Formula Stored: N/A
Skipping engine processing (Not configured as a dynamic string formula).
Evaluating Component: 'Allowances'
Calculation Type: formula
Raw Formula Stored: [Annual Other Allowances]/12
1. Step-by-Step Translation:
• Found Tag: [Annual Other Allowances] -> Normalized to: annual other allowances
⇒ WARNING: Tag not found in memory map! Replaced with 0
2. Final Mathematical String for PHP Eval: 0/12
3. Calculated Output Result: ₦0.00
Evaluating Component: 'Annual Total Gross'
Calculation Type: formula
Raw Formula Stored: [Annual Basic Salary]+[Annual Housing]+[Annual Transport]+[Annual Meal]+[Annual Entertainment]+[Annual Grooming]+[Annual Other Allowances]
1. Step-by-Step Translation:
• Found Tag: [Annual Basic Salary] -> Normalized to: annual basic salary
⇒ WARNING: Tag not found in memory map! Replaced with 0
• Found Tag: [Annual Housing] -> Normalized to: annual housing
⇒ WARNING: Tag not found in memory map! Replaced with 0
• Found Tag: [Annual Transport] -> Normalized to: annual transport
⇒ WARNING: Tag not found in memory map! Replaced with 0
• Found Tag: [Annual Meal] -> Normalized to: annual meal
⇒ WARNING: Tag not found in memory map! Replaced with 0
• Found Tag: [Annual Entertainment] -> Normalized to: annual entertainment
⇒ WARNING: Tag not found in memory map! Replaced with 0
• Found Tag: [Annual Grooming] -> Normalized to: annual grooming
⇒ WARNING: Tag not found in memory map! Replaced with 0
• Found Tag: [Annual Other Allowances] -> Normalized to: annual other allowances
⇒ WARNING: Tag not found in memory map! Replaced with 0
2. Final Mathematical String for PHP Eval: 0+0+0+0+0+0+0
3. Calculated Output Result: ₦0.00
Evaluating Component: 'Total Gross'
Calculation Type: formula
Raw Formula Stored: [Annual Total Gross]/12
1. Step-by-Step Translation:
• Found Tag: [Annual Total Gross] -> Normalized to: annual total gross
⇒ Replaced with value: 0
2. Final Mathematical String for PHP Eval: 0/12
3. Calculated Output Result: ₦0.00
Evaluating Component: 'Annual Rent'
Calculation Type: fixed
Raw Formula Stored: N/A
Skipping engine processing (Not configured as a dynamic string formula).
Evaluating Component: 'RRA'
Calculation Type: formula
Raw Formula Stored: LEAST(0.20 * [annual_rent], 500000)
1. Step-by-Step Translation:
• Found Tag: [annual_rent] -> Normalized to: annual_rent
⇒ Replaced with value: 600000
2. Final Mathematical String for PHP Eval: (0.20*600000,500000)
3. Math Engine Error: syntax error, unexpected token ","
Evaluating Component: 'Annual Pension 8%'
Calculation Type: formula
Raw Formula Stored: 0.08 * ([Annual Basic Salary] + [Annual Housing] + [Annual Transport])
1. Step-by-Step Translation:
• Found Tag: [Annual Basic Salary] -> Normalized to: annual basic salary
⇒ WARNING: Tag not found in memory map! Replaced with 0
• Found Tag: [Annual Housing] -> Normalized to: annual housing
⇒ WARNING: Tag not found in memory map! Replaced with 0
• Found Tag: [Annual Transport] -> Normalized to: annual transport
⇒ WARNING: Tag not found in memory map! Replaced with 0
2. Final Mathematical String for PHP Eval: 0.08*(0+0+0)
3. Calculated Output Result: ₦0.00
Evaluating Component: 'Pension Contribution 8%'
Calculation Type: formula
Raw Formula Stored: [Annual Pension 8%]/12
1. Step-by-Step Translation:
• Found Tag: [Annual Pension 8%] -> Normalized to: annual pension 8%
⇒ Replaced with value: 0
2. Final Mathematical String for PHP Eval: 0/12
3. Calculated Output Result: ₦0.00
Evaluating Component: 'NHIS 5% Basic'
Calculation Type: formula
Raw Formula Stored: 0.05 * [Annual Basic Salary]
1. Step-by-Step Translation:
• Found Tag: [Annual Basic Salary] -> Normalized to: annual basic salary
⇒ WARNING: Tag not found in memory map! Replaced with 0
2. Final Mathematical String for PHP Eval: 0.05*0
3. Calculated Output Result: ₦0.00
Evaluating Component: 'NHIS/12'
Calculation Type: formula
Raw Formula Stored: [NHIS 5% Basic] / 12
1. Step-by-Step Translation:
• Found Tag: [NHIS 5% Basic] -> Normalized to: nhis 5% basic
⇒ Replaced with value: 0
2. Final Mathematical String for PHP Eval: 0/12
3. Calculated Output Result: ₦0.00
Evaluating Component: 'NHF'
Calculation Type: formula
Raw Formula Stored: 0
1. Step-by-Step Translation:
2. Final Mathematical String for PHP Eval: 0
3. Calculated Output Result: ₦0.00
Evaluating Component: 'NHF/12'
Calculation Type: formula
Raw Formula Stored: [NHF] / 12
1. Step-by-Step Translation:
• Found Tag: [NHF] -> Normalized to: nhf
⇒ Replaced with value: 0
2. Final Mathematical String for PHP Eval: 0/12
3. Calculated Output Result: ₦0.00
Evaluating Component: 'Total TAX Relief'
Calculation Type: formula
Raw Formula Stored: [RRA] + [Annual Pension 8%] + [Pension Contribution 8%] + [NHIS 5% Basic] + [NHIS/12] + [NHF]
1. Step-by-Step Translation:
• Found Tag: [RRA] -> Normalized to: rra
⇒ Replaced with value: 0
• Found Tag: [Annual Pension 8%] -> Normalized to: annual pension 8%
⇒ Replaced with value: 0
• Found Tag: [Pension Contribution 8%] -> Normalized to: pension contribution 8%
⇒ Replaced with value: 0
• Found Tag: [NHIS 5% Basic] -> Normalized to: nhis 5% basic
⇒ Replaced with value: 0
• Found Tag: [NHIS/12] -> Normalized to: nhis/12
⇒ Replaced with value: 0
• Found Tag: [NHF] -> Normalized to: nhf
⇒ Replaced with value: 0
2. Final Mathematical String for PHP Eval: 0+0+0+0+0+0
3. Calculated Output Result: ₦0.00
Evaluating Component: 'Chargeable Income'
Calculation Type: formula
Raw Formula Stored: [Annual Total Gross] - [Total TAX Relief]
1. Step-by-Step Translation:
• Found Tag: [Annual Total Gross] -> Normalized to: annual total gross
⇒ Replaced with value: 0
• Found Tag: [Total TAX Relief] -> Normalized to: total tax relief
⇒ Replaced with value: 0
2. Final Mathematical String for PHP Eval: 0-0
3. Calculated Output Result: ₦0.00
Evaluating Component: 'Band 1'
Calculation Type: formula
Raw Formula Stored: min([Chargeable Income] * 12, 800000) * 0 / 12
1. Step-by-Step Translation:
• Found Tag: [Chargeable Income] -> Normalized to: chargeable income
⇒ Replaced with value: 170000
2. Final Mathematical String for PHP Eval: min(170000*12,800000)*0/12
3. Calculated Output Result: ₦0.00
Evaluating Component: 'Band 2'
Calculation Type: formula
Raw Formula Stored: LEAST(MAX(0, [Chargeable Income] - 800000), 2200000) * 0.15
1. Step-by-Step Translation:
• Found Tag: [Chargeable Income] -> Normalized to: chargeable income
⇒ Replaced with value: 170000
2. Final Mathematical String for PHP Eval: ((0,170000-800000),2200000)*0.15
3. Math Engine Error: syntax error, unexpected token ","
Evaluating Component: 'Band 3'
Calculation Type: formula
Raw Formula Stored: LEAST(MAX(0, [Chargeable Income] - 3000000), 9000000) * 0.18
1. Step-by-Step Translation:
• Found Tag: [Chargeable Income] -> Normalized to: chargeable income
⇒ Replaced with value: 170000
2. Final Mathematical String for PHP Eval: ((0,170000-3000000),9000000)*0.18
3. Math Engine Error: syntax error, unexpected token ","
Evaluating Component: 'Band 4'
Calculation Type: formula
Raw Formula Stored: LEAST(MAX(0, [Chargeable Income] - 12000000), 13000000) * 0.21
1. Step-by-Step Translation:
• Found Tag: [Chargeable Income] -> Normalized to: chargeable income
⇒ Replaced with value: 170000
2. Final Mathematical String for PHP Eval: ((0,170000-12000000),13000000)*0.21
3. Math Engine Error: syntax error, unexpected token ","
Evaluating Component: 'Band 5'
Calculation Type: formula
Raw Formula Stored: MAX(0, [Chargeable Income] - 25000000) * 0.23
1. Step-by-Step Translation:
• Found Tag: [Chargeable Income] -> Normalized to: chargeable income
⇒ Replaced with value: 170000
2. Final Mathematical String for PHP Eval: (0,170000-25000000)*0.23
3. Math Engine Error: syntax error, unexpected token ","
Evaluating Component: 'Band 6'
Calculation Type: formula
Raw Formula Stored: MAX(0, [Chargeable Income] - 25000000) * 0.24
1. Step-by-Step Translation:
• Found Tag: [Chargeable Income] -> Normalized to: chargeable income
⇒ Replaced with value: 170000
2. Final Mathematical String for PHP Eval: (0,170000-25000000)*0.24
3. Math Engine Error: syntax error, unexpected token ","
Evaluating Component: 'Annual Tax'
Calculation Type: formula
Raw Formula Stored: [Band 1] + [Band 2] + [Band 3] + [Band 4] + [Band 5] + [Band 6]
1. Step-by-Step Translation:
• Found Tag: [Band 1] -> Normalized to: band 1
⇒ Replaced with value: 0
• Found Tag: [Band 2] -> Normalized to: band 2
⇒ Replaced with value: 0
• Found Tag: [Band 3] -> Normalized to: band 3
⇒ Replaced with value: 0
• Found Tag: [Band 4] -> Normalized to: band 4
⇒ Replaced with value: 0
• Found Tag: [Band 5] -> Normalized to: band 5
⇒ Replaced with value: 0
• Found Tag: [Band 6] -> Normalized to: band 6
⇒ Replaced with value: 0
2. Final Mathematical String for PHP Eval: 0+0+0+0+0+0
3. Calculated Output Result: ₦0.00
Evaluating Component: 'Monthly Tax'
Calculation Type: formula
Raw Formula Stored: [Annual Tax] / 12
1. Step-by-Step Translation:
• Found Tag: [Annual Tax] -> Normalized to: annual tax
⇒ Replaced with value: 0
2. Final Mathematical String for PHP Eval: 0/12
3. Calculated Output Result: ₦0.00
Evaluating Component: 'Annual Employer Pension 10%'
Calculation Type: formula
Raw Formula Stored: ([Annual Basic Salary]+[Annual Housing]+[Annual Transport]) * 0.1
1. Step-by-Step Translation:
• Found Tag: [Annual Basic Salary] -> Normalized to: annual basic salary
⇒ WARNING: Tag not found in memory map! Replaced with 0
• Found Tag: [Annual Housing] -> Normalized to: annual housing
⇒ WARNING: Tag not found in memory map! Replaced with 0
• Found Tag: [Annual Transport] -> Normalized to: annual transport
⇒ WARNING: Tag not found in memory map! Replaced with 0
2. Final Mathematical String for PHP Eval: (0+0+0)*0.1
3. Calculated Output Result: ₦0.00
Evaluating Component: 'Monthly Gross Pay'
Calculation Type: formula
Raw Formula Stored: [Gross Salary Baseline] / 12
1. Step-by-Step Translation:
• Found Tag: [Gross Salary Baseline] -> Normalized to: gross salary baseline
⇒ WARNING: Tag not found in memory map! Replaced with 0
2. Final Mathematical String for PHP Eval: 0/12
3. Calculated Output Result: ₦0.00
Evaluating Component: 'Annual Net Pay'
Calculation Type: formula
Raw Formula Stored: [Gross Salary Baseline]-([Annual Pension 8%]+[NHIS 5% Basic]+[NHF]+[Annual Tax])
1. Step-by-Step Translation:
• Found Tag: [Gross Salary Baseline] -> Normalized to: gross salary baseline
⇒ WARNING: Tag not found in memory map! Replaced with 0
• Found Tag: [Annual Pension 8%] -> Normalized to: annual pension 8%
⇒ Replaced with value: 0
• Found Tag: [NHIS 5% Basic] -> Normalized to: nhis 5% basic
⇒ Replaced with value: 0
• Found Tag: [NHF] -> Normalized to: nhf
⇒ Replaced with value: 0
• Found Tag: [Annual Tax] -> Normalized to: annual tax
⇒ Replaced with value: 0
2. Final Mathematical String for PHP Eval: 0-(0+0+0+0)
3. Calculated Output Result: ₦0.00
Evaluating Component: 'Monthly NetPay'
Calculation Type: formula
Raw Formula Stored: [Annual Net Pay] / 12
1. Step-by-Step Translation:
• Found Tag: [Annual Net Pay] -> Normalized to: annual net pay
⇒ Replaced with value: 0
2. Final Mathematical String for PHP Eval: 0/12
3. Calculated Output Result: ₦0.00
Evaluating Component: 'Monthly Employer Pension'
Calculation Type: formula
Raw Formula Stored: [Annual Employer Pension 10%] / 12
1. Step-by-Step Translation:
• Found Tag: [Annual Employer Pension 10%] -> Normalized to: annual employer pension 10%
⇒ Replaced with value: 0
2. Final Mathematical String for PHP Eval: 0/12
3. Calculated Output Result: ₦0.00
Evaluating Component: 'HMO'
Calculation Type: formula
Raw Formula Stored: 0
1. Step-by-Step Translation:
2. Final Mathematical String for PHP Eval: 0
3. Calculated Output Result: ₦0.00
Evaluating Component: 'Assured Group Life'
Calculation Type: formula
Raw Formula Stored: [Total Gross] * 3
1. Step-by-Step Translation:
• Found Tag: [Total Gross] -> Normalized to: total gross
⇒ Replaced with value: 0
2. Final Mathematical String for PHP Eval: 0*3
3. Calculated Output Result: ₦0.00
Evaluating Component: 'Annual Group Premium'
Calculation Type: formula
Raw Formula Stored: [Annual Basic Salary] * 0.06
1. Step-by-Step Translation:
• Found Tag: [Annual Basic Salary] -> Normalized to: annual basic salary
⇒ WARNING: Tag not found in memory map! Replaced with 0
2. Final Mathematical String for PHP Eval: 0*0.06
3. Calculated Output Result: ₦0.00
Evaluating Component: 'Monthly Group Premium'
Calculation Type: formula
Raw Formula Stored: [Annual Group Premium] / 12
1. Step-by-Step Translation:
• Found Tag: [Annual Group Premium] -> Normalized to: annual group premium
⇒ Replaced with value: 0
2. Final Mathematical String for PHP Eval: 0/12
3. Calculated Output Result: ₦0.00
Evaluating Component: 'ITF'
Calculation Type: formula
Raw Formula Stored: [Annual Total Gross] * 0.01
1. Step-by-Step Translation:
• Found Tag: [Annual Total Gross] -> Normalized to: annual total gross
⇒ Replaced with value: 0
2. Final Mathematical String for PHP Eval: 0*0.01
3. Calculated Output Result: ₦0.00
Evaluating Component: 'Annual Compensation (NSITIF)'
Calculation Type: formula
Raw Formula Stored: [Annual Total Gross] * 0.01
1. Step-by-Step Translation:
• Found Tag: [Annual Total Gross] -> Normalized to: annual total gross
⇒ Replaced with value: 0
2. Final Mathematical String for PHP Eval: 0*0.01
3. Calculated Output Result: ₦0.00
Evaluating Component: 'Monthly Compensation (NSITIF)'
Calculation Type: formula
Raw Formula Stored: [Annual Compensation (NSITIF)] /12
1. Step-by-Step Translation:
• Found Tag: [Annual Compensation (NSITIF)] -> Normalized to: annual compensation (nsitif)
⇒ Replaced with value: 0
2. Final Mathematical String for PHP Eval: 0/12
3. Calculated Output Result: ₦0.00
Evaluating Component: 'Annual Total Emp Cost'
Calculation Type: formula
Raw Formula Stored: [Annual Total Gross]+[Annual Employer Pension 10%]+[Annual Group Premium]+[ITF]+[Annual Compensation (NSITIF)]
1. Step-by-Step Translation:
• Found Tag: [Annual Total Gross] -> Normalized to: annual total gross
⇒ Replaced with value: 0
• Found Tag: [Annual Employer Pension 10%] -> Normalized to: annual employer pension 10%
⇒ Replaced with value: 0
• Found Tag: [Annual Group Premium] -> Normalized to: annual group premium
⇒ Replaced with value: 0
• Found Tag: [ITF] -> Normalized to: itf
⇒ Replaced with value: 0
• Found Tag: [Annual Compensation (NSITIF)] -> Normalized to: annual compensation (nsitif)
⇒ Replaced with value: 0
2. Final Mathematical String for PHP Eval: 0+0+0+0+0
3. Calculated Output Result: ₦0.00
Evaluating Component: 'Daily Rate'
Calculation Type: formula
Raw Formula Stored: [Total gross] / 30
1. Step-by-Step Translation:
• Found Tag: [Total gross] -> Normalized to: total gross
⇒ Replaced with value: 0
2. Final Mathematical String for PHP Eval: 0/30
3. Calculated Output Result: ₦0.00
Evaluating Component: 'Actual Gross'
Calculation Type: formula
Raw Formula Stored: [Total gross] - ([Daily Rate] * [absent days])
1. Step-by-Step Translation:
• Found Tag: [Total gross] -> Normalized to: total gross
⇒ Replaced with value: 0
• Found Tag: [Daily Rate] -> Normalized to: daily rate
⇒ Replaced with value: 0
• Found Tag: [absent days] -> Normalized to: absent days
⇒ WARNING: Tag not found in memory map! Replaced with 0
2. Final Mathematical String for PHP Eval: 0-(0*0)
3. Calculated Output Result: ₦0.00
Evaluating Component: 'PAYEE'
Calculation Type: formula
Raw Formula Stored: [Annual Tax] / 12
1. Step-by-Step Translation:
• Found Tag: [Annual Tax] -> Normalized to: annual tax
⇒ Replaced with value: 0
2. Final Mathematical String for PHP Eval: 0/12
3. Calculated Output Result: ₦0.00
Evaluating Component: 'NET SALARY'
Calculation Type: formula
Raw Formula Stored: [Actual Gross] - [Total Deduction]
1. Step-by-Step Translation:
• Found Tag: [Actual Gross] -> Normalized to: actual gross
⇒ Replaced with value: 0
• Found Tag: [Total Deduction] -> Normalized to: total deduction
⇒ WARNING: Tag not found in memory map! Replaced with 0
2. Final Mathematical String for PHP Eval: 0-0
3. Calculated Output Result: ₦0.00
Evaluating Component: 'Total Deduction'
Calculation Type: formula
Raw Formula Stored: [PAYEE]+[Pension Contribution 8%]+[NHIS]
1. Step-by-Step Translation:
• Found Tag: [PAYEE] -> Normalized to: payee
⇒ Replaced with value: 0
• Found Tag: [Pension Contribution 8%] -> Normalized to: pension contribution 8%
⇒ Replaced with value: 0
• Found Tag: [NHIS] -> Normalized to: nhis
⇒ WARNING: Tag not found in memory map! Replaced with 0
2. Final Mathematical String for PHP Eval: 0+0+0
3. Calculated Output Result: ₦0.00
Evaluating Component: 'Basic Salary'
Calculation Type: formula
Raw Formula Stored: [Annual Basic Salary] / 12
1. Step-by-Step Translation:
• Found Tag: [Annual Basic Salary] -> Normalized to: annual basic salary
⇒ WARNING: Tag not found in memory map! Replaced with 0
2. Final Mathematical String for PHP Eval: 0/12
3. Calculated Output Result: ₦0.00