How to manage custom earned leave in ERPNext?

Hi,
I checked the ‘Is Earned Leave’ option for a leave type. This particular leave should be credited as 1.67 leaves per month. Any additional leaves taken would be considered as Leave Without Pay. Since ERPNext doesn’t round off 1.67, I added 1.67 to the option then and set the maximum number of leaves to 20. However, when I assigned this leave type to an employee, during the leave application, the employee had 20 leaves and was able to take 3 leaves, which is logically incorrect. How can I tackle this situation in ERPNext?

Also, when I tried to apply leave, leave days applied beyond 3 days were still shown as “3” ( from 11/09 to 15/09 is shown as 3 days) and I’m able to save the application and even approve it. But, when I approve, attendance will be marked against 11/09, 12/09 and 13/09 only.