Salary Slip incorrectly calculating when payment days are zero

I have salary components Basic+DA, Conveyance, Medical Allowance, HRA, Other Allowance. All these are earning components and all components have ‘Depends on Payment Days’ checked. Last earning component is Gross which is formula based and is addition of all above components. I have set Amount for Basic+DA lets say 14000 and all other components as zero when I created salary structure. As per my structure every component is ‘Depends on Payment Days’. For one salary slip my payment days is zero. That means Basic+DA should become zero. But Salary Slip is generating 14000 in Basic+Component instead of zero