How to convert absent or haft day into without pay leave

Agree with Sumit. It calculates only approved leaves and not absent… Any solution yet?