Not getting salary based on payment days

Employee have payment days 13 showing Salary Slip. But salary is not deducted, total base salary is showing.

This is the Salary structure

These are Salary Slip’s data. Employee’s Base Salary is 30,000

What is the issue here? Did I miss anything?

Your Salary Component definition may be the issue. Ensure " Depends on Payment Days" is checked. You have to re-generate the pay slip again after the setting.

I think the calculations are right?

base = 30000
payment_days = 13
total_working_days = 25
basic = base*0.53

#Depend on payment days is selected for base component
basic = (30000*0.53)*(13/25)
basic = 8268

The problem might be with the others component. You might need to rewrite the formula as

base*(payment_days/total_working_days)-(MD+C+HR+B)

For it to calculate with the proper based value.

Is Depends on Payment Days this option needs to check in salary component? For getting the result?

It needs to be checked only for the base component. Since all the other components used the base component in their formula, you need not give depends on payment days for the other components.

Only Basic component needs to check Depends on Payment Days?