If annual leave is not calculating correctly when taking an annual leave, first thing you'll need to check is the Payment setup for annual leave in settings. Here's how to check:
Go to the Payroll tab and select Payroll Settings.
Select Leave Categories and then select Annual Leave.