- When an employee changes the Job Schedule (weekly hours) or Salary, the system calculates the hours/salary due for the period left in the old position and the hours/salary due for the new period.
- When an employee's position is terminated, the system calculates the hours due for the period left in the position.

**CHANGE IN JOB SCHEDULE (examples based on a Monthly payroll with Full-time role ending 9th March and Part-time 20-Hours role starting 10th March)**

1. **Calculate w****orking days**

Calculate the number of working days in each position history: from the start of payroll period till the end of position history for the old position; and from the start of position history till the end of payroll period for the new position.

Full-time: 01/03/2020 - 09/03/2020 = 6 working days

Part-time: 10/03/2020 - 31/03/2020 = 16 working days

Then calculate the number of working days in the current payroll period.

March 2020 = 22 working days

2. **Calculate working hours**

Calculate the working hours for each position history by multiplying the number of working days by the number of daily hours (as per job schedule).

Full-time: 6 working days * 8 hours a day = 48 working hours

Part-time: 16 working days * 4 hours a day = 64 working hours

Then calculate the total working hours for the current payroll period for both job schedules.

March 2020:

Full-time: 22 working days * 8 hours a day = 176 working hours

Part-time: 22 working days * 4 hours a day = 88 working hours

3. **Calculate Basic hours to pay**

Divide the working hours for each position history by the total working hours for the payroll period, then multiply by the average hours used for the payroll period.

Full-time: (48 working hours / 176 working hours) * 173.33 average monthly hours = 47.2718 hours

Part-time: (64 working hours / 88 working hours) * 86.67 average monthly hours = 63.0327 hours

4. **Remove unpaid hours**

Deduct any hours of unpaid leave booked during any of the two positions, from the number of hours calculated in step 3.

Full-time: 47.2718 hours - 8 hours unpaid leave = **39.2718 hours**

Part-time: 63.0327 hours - 0 hours unpaid leave = **63.0327 hours**

5. **Multiply by the hourly rate**

The final number of basic hours to pay (unpaid hours deducted) must be multiplied by the hourly rate. To find the hourly rate when an employee is on an annual salary, divide it by 52 weeks, and then divide it again by the weekly working hours.

Annual salary on Full-time: €20,000 / 52 / 40

Annual salary on Part-time: €10,000 / 52 / 20

Hourly rate: €9.6154 (for both positions since there's no salary change but only job schedule change)

Full-time 39.2718 hours * €9.6154 = **€377.61**Part-time: 63.0327 hours * €9.6154 =

**€606.08**

**Total Basic Hours March = 102.3045 (+ 8 hours unpaid)Total Basic Pay March = €983.69 (+ €0 unpaid leave)**

**CHANGE IN SALARY**

(examples based on a Monthly payroll with salary increase effective on the 10th March)

1. **Repeat steps 1-4 above** to calculate the basic hours to pay, including the deduction of unpaid hours.

Old salary: 01/03/2020 - 09/03/2020 = 6 working days

New salary: 10/03/2020 - 31/03/2020 = 16 working days

March 2020 = 22 working days

Old salary: 6 working days * 8 hours a day = 48 working hours

New salary: 16 working days * 8 hours a day = 128 working hours

March 2020 = 176 working hours

Old salary: (48 working hours / 176 working hours) * 173.33 average monthly hours = 47.2718 hours - 8 hours unpaid leave = **39.2718 hours**

New salary: (128 working hours / 176 working hours) * 173.33 average monthly hours = 126.0582 hours - 0 hours unpaid leave = **126.0582 hours**

2. **Multiply by the hourly rate**

The final number of basic hours to pay (unpaid hours deducted) must be multiplied by the hourly rate. To find the hourly rate when an employee is on an annual salary, divide it by 52 weeks, and then divide it again by the weekly working hours.

Old salary: €20,000 / 52 / 40 = € 9.6154 per hour

New salary: €24,000 / 52 / 40 = €11.5385 per hour

Old salary: 39.2718 hours * €9.6154 = **€377.61**New salary: 126.0582 hours * €11.5385 =

**€1,454.52**

**Total Basic Hours March = 165.33**** (+ 8 hours unpaid)**

Total Basic Pay March = €1,060.62 **(+ €0 unpaid leave)**