|
Example: Do the following to calculate regular pay:
- the employee receives basic gross salary of 2,500.00 EUR (variable#Del03#)
- hours of attendance at work or hours worked: 136 hours (variable
#PRUre#)
- hours worked per month: 168 hours (variable
#Fa3#)
Result:
- After rounding to two decimal places: 2,023.68 EUR
- without rounding: 2,023.81 EUR
|
1. Example 1: Rounding Using Variable #RoundSlry#
Round the hourly rate to two decimal places (2,500,00 EUR/168 hours = 14.88 EUR). Then multiply it with the hours of attendance (136 hours) to get 2,023.68 EUR (14.88 EUR * 136 hours).
Create the following formula: Round(#Del03#/#Fa3#;#RoundSlry#)*#PRUre#
To record variable Round(;) in formula builder click
.

To determine hourly rate, enter variables in the brackets Round(;). In our case #Del03#/#Fa3#.

Select variable for rounding salaries (#RoundSlry#) by double-clicking Type of Variable | Rounding.

Then multiply this with the number of hours of attendance (#PRUre#).

Click
to test formula.

Then click
to record the formula to earnings type for regular work.

The amount of 2,023.68 EUR is recorded in pay slip for regular pay.

|
For rounding using variable #RoundSlry# you have to set it in the Administration Panel l Settings l Program Parameters | Company l Rounding l
Salary Rounding. For example if you set two decimal places, the gross salary amount 2,023.82 EUR will appear in
pay slip. |

2. Example 2: Rounding without Using Variable #RoundSlry#
Create the following formula: Round(#Del03#/#Fa3#;0,01)*#PRUre#.
Follow the same procedure as above. The only difference is that you enter value 0.01 instrad of variable #RoundSlry#.

|
The amount is this way always rounded according to the number of decimal places set in formula. The rounding settings from the Administration Panel | Settings | Program Parameters | Company l Rounding lSalary Rounding are not considered here. For example, if you set 0.01 in formula, the payment amount gets rounded to two decimal places. |
3. Example 3: Not Using Rounding in Formula
First create formula: #Del03#/#Fa3#*#PRUre#.

The amount 2,023.81 EUR is entered in pay slip.
