Leave Without Pay calculation is wrong when generating salary slip

When I’m entering Leave Without Pay in generating salary slip, calculation of deduction is going to be wrong, What is the problem?

Please elaborate on your problem. Include expected output and actual output. Screenshots would make the debugging process easier.

I have created a salary structure with the following detail

I assigned this salary structure to an employee and when I’m creating salary slip the following calculation done with 31 working days

But when I’m filling the field “Leave Without Pay” calculation going wrong

Here PF-Employee would be 707.28
and PF-Employer would be 766.22

and I’ve set component as do not include in total, when I create salary slip manually or automatically and update any field that component add in total.