Overtime calculation based on attendance in the period
Salary rule to make payment based on basic wage and total hours worked
Over time hours = total worked hours(from attn) - number of hours worked in normal working days
Add salary rule named overtime to your salary structure
Overtime salary = (basic wage in contract / number of normal hours) * overtime hours
Overtime salary calculation can be changed from salary rules