Zero attendance scenario not working


I have the following salary components

  1. Basic-10000-depends on attendance
  2. HRA-5000-depends on attendance
  3. Gross- (Basic+HRA)
  4. ESI - Gross*0.0075

Now when attendance is marked wherein employee is present for say 10 days, the calculation are coming perfectly for any combination of working & payment days.

However when employee is absent for whole month (i.e. zero payment days), all other components are coming as zero but Gross is coming as 15000 & ESI is coming as 112.5.

Ideally these two should also be zero. Seems like a bug wherein zero attendance is not handled. Am i correct?

Please check your formula for ESI component.