Home      Ask a Question      My Stuff      Help   
  
Scripting - Doing Multiple Calculations based on a Pay Rate
The system supports multiple calculations based on an initial amount like say 'payrate0' or the 'Default Payrate' found in 'Employee Setup'.

This will also work for 'Payrate1, Payrate2, and Payrate3 in Employee Setup.

As an example say you wanted an employee on top of his base pay rate of $5.00 an hour to get a differential payment of $1.00 multiplied by 2 based on if he worked in category "Nights". The script for this would look like the below:

if (category = "Nights")
{
payrate = (payrate + 1)*2);
}

This would take his/her base pay rate of $5.00 an hour and add $1.00 to $6.00 an hour then multiply that by 2 for a total of $12.00 an hour if he worked in category/job code of "Nights".

You can further the calculations out by adding more brackets '()' and functions.

For example 'pay rate of $3.00 an hour *2, *4, +2' would look like:

payrate = (((payrate *2)*4)+2);

This would be $3.00 X 2 X 4 + 2 = $26 an hour.

ID
341
Category
Training
  FAQ's
Date Created
1/2/2009 11:26:24 AM
Date Updated
9/20/2011 8:59:26 AM
Back to Search Results