What this assumes
Pay = regular hours × rate + overtime hours × rate × multiple. Weekly mode uses a 40-hour cap, which matches the usual US overtime threshold. Change the cap if your contract uses a different number.
Saudi and Pakistan overtime rules depend on the contract, the day, and whether the hours are a rest day or a holiday. 1.5× and 2× are common multiples, not a guarantee for every job. This page does not subtract tax.