Nobody works exactly to the contract. Except perhaps in the most monitored and hellish workplaces (e.g. Amazon warehouses).
Some of my employers had flexible timekeeping, and then I would often work a bit over 40h/week so that I could take extra days off for extended weekend trips when I felt like it.