As per QLL, leave benefits (leave salary) is calculated on basic salary for 3 weeks annually.

Some companies calculate leave salary on basic salary for 30 days annually.

Some might even include Housing Allowance in calculation of leave salary.

Hope this helps.