Upon dismissal, the employee is paid compensation for all unused vacations, as well as wages for the period worked. The calculation of vacation compensation depends on the period worked and the average daily salary.

## Instructions

### Step 1

To calculate compensation for unused vacations, you must first calculate the number of unused vacation days. Upon dismissal of an employee who has worked in one company for more than 11 months, he is entitled to compensation in the amount of his average daily salary multiplied by the total number of vacation days. Average daily salary is the sum of all monthly salaries for the year, divided by 12 and 29.4 (the average number of days in a month). In other cases, compensation is calculated in proportion to the period worked.

### Step 2

Usually vacation is equal to 28 calendar days. In this case, for each working month, 2, 33 days of vacation are allowed. If an employee leaves on the last day of the month, then this month is included in the billing period. If this is not the case, then an incomplete month is not taken into account in the calculation.

### Step 3

Compensation for those who have worked in the company for less than 11 months is calculated in proportion to the amount worked. Those. 2, 33 is multiplied by the number of full months worked and by the average daily. If, for example, an employee has worked in the company for six months and has not used the prescribed vacation, then he must be compensated for 14 days of vacation (when multiplying 2, 33 by the number of months, the product is rounded up). The compensation will be calculated by multiplying his average daily salary by 14.

### Step 4

In addition to compensation for unused vacation, the employee is supposed to be paid a salary for the period actually worked in the last month. To do this, the monthly salary must be divided by the number of working days in that month, and then multiplied by the number of days worked. For example, if the employee's salary is 50,000 rubles, and in a month there are 22 working days, of which he worked 6, then 50,000 should be divided by 22 (we get about 2273 rubles) and multiplied by 6 (we get 13638 rubles).