Overtime disputes rarely come from an unclear law. They come from two people computing the hourly wage from different figures: one uses the basic salary, the other the full package with allowances. This calculator keeps the two figures apart and applies each country's statutory text as written, so a payroll officer, an employment lawyer and the employee can all follow the same arithmetic line by line.
In Saudi Arabia, Article 107 of the Labour Law requires the employer to pay for each overtime hour the normal hourly wage plus fifty per cent of the basic hourly wage. That is why the tool asks for two numbers: the full wage including fixed allowances, and the basic wage on which the premium is calculated. In the UAE, Article 19 of Federal Decree-Law No. 33 of 2021 sets the hourly wage plus 25%, rising to 50% for work between 10 pm and 4 am or on the rest day. In both cases the hourly wage is the monthly wage divided by 30 days and then by the normal daily hours, eight by default.
A Saudi example with the default values: a full wage of 6,000 riyals, a basic wage of 4,000 and ten overtime hours. The normal hourly wage is 6,000 ÷ 30 ÷ 8 = 25 riyals; half the basic hourly wage is 4,000 ÷ 240 × 0.5, about 8.33. The overtime rate is therefore 33.33 riyals and the ten hours come to 333.33. Switch to the UAE with a 4,000-dirham basic wage and ten regular hours and you get an hourly wage of 16.67, an overtime rate of 20.83 and a total of 208.33 dirhams, while a night or rest-day hour pays 25.
Read the headline figure as the amount due for the hours you entered, then use the overtime hourly rate to check any payslip line. A warning that the full wage is below the basic wage almost always means the two fields were swapped, since the full wage can never be smaller.
The usual slip is leaving eight daily hours during Ramadan, when Muslim workers in Saudi Arabia work six; fewer hours raise the hourly wage. Another is lumping UAE night hours into regular hours and losing the higher premium. The tool does not model more generous contract terms, variable allowances or excluded categories of workers, so in a dispute check with the labour ministry in your country or a licensed lawyer.