What is the formula for calculating compensation for length of service?

Salary per year × number of hours worked per day × number of days entitled (5/6 of a day’s wage for each month completed) ÷52 ÷ number of hours worked per week

(Regulation 24 (2) of S.I 34 of 1991)