Using below formula to count the leaves between the dates.
L = Full Leave = 1 H = Half Leave/2 = 0.5 S = Short Leave/4 = 0.25
For Example If