function doTimeValueCalc ( param1, param2 ){ var x = REreplace(trim(arguments.param1), "[,-/]",".","All"); var Y = REreplace(trim(arguments.param2), "[,-/]",".","All"); if (x EQ "") {x = 0;} if (not isValid("range", x, 0, 99999)) {x = 0;} if (y EQ "") {y = 0;} if (not isValid("range", y, 0, 99999)) {y = 0;} return x*y; } function errorCheck ( param1, param2 ) { var errorResult = "errorFalse"; // var x = trim(arguments.param1); // var y = trim(arguments.param2); var x = REreplace(trim(arguments.param1), "[,-/]",".","All"); var Y = REreplace(trim(arguments.param2), "[,-/]",".","All"); if (x EQ "") {x = 0;} if (y EQ "") {y = 0;} if (not isValid("range", x, 0, 99999)) {errorResult = "errorTrue";} if (not isValid("range", y, 0, 99999)) {errorResult = "errorTrue";} return errorResult; } function activityAmount ( param1, param2 ) { var ACVal = arguments.param1 * 100; var YOSVal = arguments.param2; // return YOSVal * ACVal; return numberformat((YOSVal * ACVal), "99999.9"); } function centsCount ( param1 ) { var i = arguments.param1; var totalCents = ArrayNew(1); form.countResSort = REreplace(trim(form.countResSort), "[,-/]",".","All"); form.countFarmSort = REreplace(trim(form.countFarmSort), "[,-/]",".","All"); form.countApartSort = REreplace(trim(form.countApartSort), "[,-/]",".","All"); form.countAMSBuisSort = REreplace(trim(form.countAMSBuisSort), "[,-/]",".","All"); form.countBuisDirSort = REreplace(trim(form.countBuisDirSort), "[,-/]",".","All"); form.countCallerSort = REreplace(trim(form.countCallerSort), "[,-/]",".","All"); form.countRMBDel = REreplace(trim(form.countRMBDel), "[,-/]",".","All"); form.countGMBDel = REreplace(trim(form.countGMBDel), "[,-/]",".","All"); form.countCMBDel = REreplace(trim(form.countCMBDel), "[,-/]",".","All"); form.countKioskDel = REreplace(trim(form.countKioskDel), "[,-/]",".","All"); form.countApartDel = REreplace(trim(form.countApartDel), "[,-/]",".","All"); form.countBuisDirDel = REreplace(trim(form.countBuisDirDel), "[,-/]",".","All"); form.countRPODel = REreplace(trim(form.countRPODel), "[,-/]",".","All"); form.countSLBDel = REreplace(trim(form.countSLBDel), "[,-/]",".","All"); form.countPickupDel = REreplace(trim(form.countPickupDel), "[,-/]",".","All"); form.countFiftyKM = REreplace(trim(form.countFiftyKM), "[,-/]",".","All"); form.countFortyKM = REreplace(trim(form.countFortyKM), "[,-/]",".","All"); form.countStopAllow = REreplace(trim(form.countStopAllow), "[,-/]",".","All"); //FORM COUNT STICKY VARIABLES if (form.countResSort EQ "" OR NOT isValid("range", form.countResSort, 0, 99999)) {form.countResSort = 0;} if (form.countFarmSort EQ "" OR NOT isValid("range", form.countFarmSort, 0, 99999)) {form.countFarmSort = 0;} if (form.countApartSort EQ "" OR NOT isValid("range", form.countApartSort, 0, 99999)) {form.countApartSort = 0;} if (form.countAMSBuisSort EQ "" OR NOT isValid("range", form.countAMSBuisSort, 0, 99999)) {form.countAMSBuisSort = 0;} if (form.countBuisDirSort EQ "" OR NOT isValid("range", form.countBuisDirSort, 0, 99999)) {form.countBuisDirSort = 0;} if (form.countCallerSort EQ "" OR NOT isValid("range", form.countCallerSort, 0, 99999)) {form.countCallerSort = 0;} if (form.countRMBDel EQ "" OR NOT isValid("range", form.countRMBDel, 0, 99999)) {form.countRMBDel = 0;} if (form.countGMBDel EQ "" OR NOT isValid("range", form.countGMBDel, 0, 99999)) {form.countGMBDel = 0;} if (form.countCMBDel EQ "" OR NOT isValid("range", form.countCMBDel, 0, 99999)) {form.countCMBDel = 0;} if (form.countKioskDel EQ "" OR NOT isValid("range", form.countKioskDel, 0, 99999)) {form.countKioskDel = 0;} if (form.countApartDel EQ "" OR NOT isValid("range", form.countApartDel, 0, 99999)) {form.countApartDel = 0;} if (form.countBuisDirDel EQ "" OR NOT isValid("range", form.countBuisDirDel, 0, 99999)) {form.countBuisDirDel = 0;} if (form.countRPODel EQ "" OR NOT isValid("range", form.countRPODel, 0, 99999)) {form.countRPODel = 0;} if (form.countSLBDel EQ "" OR NOT isValid("range", form.countSLBDel, 0, 99999)) {form.countSLBDel = 0;} if (form.countPickupDel EQ "" OR NOT isValid("range", form.countPickupDel, 0, 99999)) {form.countPickupDel = 0;} if (form.countFiftyKM EQ "" OR NOT isValid("range", form.countFiftyKM, 0, 99999)) {form.countFiftyKM = 0;} if (form.countFortyKM EQ "" OR NOT isValid("range", form.countFortyKM, 0, 99999)) {form.countFortyKM = 0;} if (form.countStopAllow EQ "" OR NOT isValid("range", form.countStopAllow, 0, 99999)) {form.countStopAllow = 0;} totalCents[i] = (compResSort[i] * form.countResSort) + (compFarmSort[i] * form.countFarmSort) + (compApartSort[i] * form.countApartSort) + (compAMSBuisSort[i] * form.countAMSBuisSort) + (compBuisDirSort[i] * form.countBuisDirSort) + (compCallerSort[i] * form.countCallerSort) + (compRMBDel[i] * form.countRMBDel) + (compGMBDel[i] * form.countGMBDel) + (compCMBDel[i] * form.countCMBDel) + (compKioskDel[i] * form.countKioskDel) + (compApartDel[i] * form.countApartDel) + (compBuisDirDel[i] * form.countBuisDirDel) + (compRPODel[i] * form.countRPODel) + (compPickupDel[i] * form.countPickupDel) + (compFiftyKM[i] * form.countFiftyKM) + (compFortyKM[i] * form.countFortyKM) + (compStopAllow[i] * form.countStopAllow); return totalCents[i]; } //SET LANGUAGE VARIABLES if (NOT IsDefined("form.language")) { form.language = 1; EngSelect = "SELECTED=SELECTED CHECKED=CHECKED"; FraSelect = ""; } if (form.language EQ 1) { EngSelect = "SELECTED=SELECTED CHECKED=CHECKED"; FraSelect = ""; langLogo = "en"; langPageHeader = "RSMC RMS Hours and Wages Calculator"; langBrowserTitle = langPageHeader; //"Wages Calculator"; langTVTableHeader = "Time Value Calculation"; langSortHeader = "Sortation"; langTVHeader = "Time Value"; langCountHeader = "Count"; langTimeMinsHeader = "Time (Minutes)"; langResSort = "Residential"; langFarmSort = "Farm"; langApartSort = "Apartment"; langAMSBuisSort = "AMS Business"; langBuisDirSort = "Business Direct"; langCallerSort = "Sortation Caller"; langSortTotal = "Sortation Total"; langDelHeader = "Delivery"; langRMBDel = "RMB"; langGMBDel = "GMB"; langCMBDel = "CMB"; langKioskDel = "Kiosk"; langApartDel = "Apartment"; langBuisDirDel = "Business Direct"; langRPODel = "RPO"; langSLBDel = "SLB"; langPickupDel = "Pickup"; langDelTotal = "Delivery Total"; langDriveAllowHeader = "Drive Allowance"; langDriveCountHeader = "Number of km"; langFiftyKM = "50 km/Hr (0-2 stops/km)"; langFortyKM = "40 km/Hr (2+ stops/km)"; langDriveAllowTotal = "Drive Allowance Total"; langStopAllowHeader = "Stop Allowance"; langStopCountHeader = "Number of Stops"; langStopAllow = "Actual Delivery Stops"; langStopAllowTotal = "Stop Allowance Total"; langYOSLabel = "Select years of service:"; langZoneLabel = "Select your region:"; langZoneText = "Zone"; langZoneInfo = "

What's my zone?

Click here for a searchable PDF document listing of RSMC offices and their postal codes by compensation zone.

"; langDisclaimer = "

DISCLAIMER and TERMS OF USE: While we have tested this calculator and made efforts to check its accuracy, the Canadian Union of Postal Workers (CUPW) cannot promise that it is accurate in every situation. There will also be differences in calculations due to rounding errors. The calculator was solely designed to give RSMC members a general idea of the hourly wage they would receive for 2013, 2014 and 2015 under the proposed changes to the RSMC collective agreement. However, because CUPW cannot guarantee the calculator's results to be accurate or complete, the calculator should not be used as a basis for financial planning. The Canadian Union of Postal Workers cannot be held responsible for any decisions made based on the results generated by this calculator. There are also changes to the route measurement system, such as calls being converted to business, that will mean the resulting calculations may differ from the actual wages calculated by Canada Post when the compensation model is implemented.

By clicking the 'Calculate' button, you agree to these terms and conditions of the use of this calculator.

"; langBtnCalc = "Calculate"; langGoToTop = "Go to top"; langCUPWurl = "www.cupw.ca"; langPrivacy = "Privacy"; langPrivacyURL = "http://www.cupw.ca/index.cfm/ci_id/6437/la_id/1.htm"; langWagesTableHeader = "RMS Hours and Hourly Wages"; langWagesItemHeader = "Item"; langDailyCents = "Total Daily Cents"; langDailyDollars = "Total Daily Dollars"; langHourlyWage = "Hourly Wage"; langRMSMins = "RMS Daily Minutes"; langRMSHours = "RMS Daily Hours"; langCompTableHeader = "Task Compensation Amounts in Cents"; }else{ EngSelect = ""; FraSelect = "SELECTED=SELECTED CHECKED=CHECKED"; langLogo = "fr"; langPageHeader = "FFRS - Heures selon le SGI et calcul
du salaire"; langBrowserTitle = "FFRS - Heures selon le SGI et calcul du salaire"; //"Grille de calcul de la rémunération"; langTVTableHeader = "Calcul des valeurs de temps"; langSortHeader = "Valeurs de tri"; langTVHeader = "Valeur de temps"; langCountHeader = "Nombre"; langTimeMinsHeader = "Temps (minutes)"; langResSort = "Résidence"; langFarmSort = "Ferme"; langApartSort = "Appartement"; langAMSBuisSort = "Commerce SGA"; langBuisDirSort = "Commerce intérieur"; langCallerSort = "à réclamer"; langSortTotal = "Tri - total"; langDelHeader = "Valeurs de livraison"; langRMBDel = "BLR"; langGMBDel = "BPM"; langCMBDel = "BPCOM"; langKioskDel = "Kiosque"; langApartDel = "Appartement"; langBuisDirDel = "Commerce"; langRPODel = "COP"; langSLBDel = "BLP"; langPickupDel = "Ramassage"; langDelTotal = "Livraison - total"; langDriveAllowHeader = "Valeur par km"; langDriveCountHeader = "Nombre de km"; langFiftyKM = "50 km/h (0-2 arrêts/km)"; langFortyKM = "40 km/h (2.01+ arrêts/km)"; langDriveAllowTotal = "Allocation de conduite - total"; langStopAllowHeader = "Allocation d'arrêt"; langStopCountHeader = "Nombre d'arrêts"; langStopAllow = "Arrêts de livraison réels"; langStopAllowTotal = "Allocation d'arrêt - total"; langYOSLabel = "Années de service :"; langZoneLabel = "Votre région :"; langZoneText = "Secteur"; langZoneInfo = "

Quel est mon secteur?

Pour télécharger une liste consultable en format PDF des bureaux FFRS et des codes postaux correspondants par secteur de rémunération, cliquez ici.

"; langDisclaimer = "

Modalités d'utilisation et avis de non-responsabilité : Nous avons fait l'essai du calculateur et, dans la mesure du possible, vérifié son exactitude. Toutefois, le Syndicat des travailleurs et travailleuses des postes (STTP) ne peut garantir la précision des résultats pour chacune des situations particulières. Il y aura aussi des différences dans les calculs à cause des erreurs d'arrondissement. Le calculateur a été conçu uniquement dans le but de donner aux membres FFRS une idée générale du taux horaire qu'ils pourraient recevoir en 2013, 2014 et 2015 selon les modifications proposées à leur convention collective. Puisque le STTP n'est pas en mesure de garantir que les résultats du calculateur seront exacts et complets, il invite ses membres à ne pas utiliser ces résultats à des fins de planification financière. Le STTP ne peut en aucun cas être tenu responsable des décisions prises en fonction des résultats obtenus à l'aide du calculateur. Des modifications au système de mesure des itinéraires, comme la désignation de points de remise commerciaux, pourraient donner lieu à des calculs qui diffèrent de ceux qui seront effectués par Postes Canada au moment de la mise en œuvre du modèle de rémunération.

En cliquant sur le bouton « Calculer » vous acceptez les modalités d'utilisation du calculateur.

"; langBtnCalc = "Calculer"; langGoToTop = "Haut de la page"; langCUPWurl = "www.sttp.ca"; langPrivacy = "Politique de confidentialité"; langPrivacyURL = "http://www.sttp.ca/index.cfm/ci_id/6437/la_id/2.htm"; langWagesTableHeader = "Heures du SGI et taux horaires "; langWagesItemHeader = "élément"; langDailyCents = "Cents quotidiens - total"; langDailyDollars = "Dollars quotidiens - total"; langHourlyWage = "Salaire horaire"; langRMSMins = "Minutes SGI quotidiennes"; langRMSHours = "Heures SGI quotidiennes"; langCompTableHeader = "Montants de la rémunération par activité (en cents)"; } // TIME VALUES FOR EACH ACTIVITY tvResSort = .25; tvFarmSort = .25; tvApartSort = .17; tvAMSBuisSort = .80; tvBuisDirSort = .80; tvCallerSort = .80; tvRMBDel = .28; tvGMBDel = .17; tvCMBDel = .14; tvKioskDel = .15; tvApartDel = .19; tvBuisDirDel = .65; tvRPODel = 2.90; tvSLBDel = 2.90; tvPickupDel = 2.90; tvFiftyKM = 1.20; tvFortyKM = 1.50; tvStopAllow = .24; //ACTIVITY COMPENSATION AMOUNTS IN DOLLARS FOR RSMC IN ZONE 1, 2 and 3 IN 2013 AT 5+ YEARS zoneMax = ArrayNew(2); dvResSort = "Res Sort,,,0.077,0.079,0.081,,,0.085,0.087,0.088,,,0.089,0.090,0.092"; dvFarmSort = "Farm Sort,,,0.077,0.079,0.081,,,0.085,0.087,0.088,,,0.089,0.090,0.092"; dvApartSort = "Apart Sort,,,0.052,0.054,0.055,,,0.058,0.059,0.060,,,0.060,0.062,0.063"; dvAMSBuisSort = "AMS Buis Sort,,,0.247,0.253,0.259,,,0.271,0.277,0.282,,,0.284,0.289,0.295"; dvBuisDirSort = "Buis Dir Sort,,,0.247,0.253,0.259,,,0.271,0.277,0.282,,,0.284,0.289,0.295"; dvCallerSort = "Caller Sort,,,0.247,0.253,0.259,,,0.271,0.277,0.282,,,0.284,0.289,0.295"; dvRMBDel = "RMB Del,,,0.086,0.087,0.088,,,0.095,0.097,0.099,,,0.099,0.101,0.103"; dvRMBDel = "RMB Del,,,0.086,0.088,0.091,,,0.095,0.097,0.099,,,0.099,0.101,0.103"; dvGMBDel = "GMB Del,,,0.052,0.054,0.055,,,0.058,0.059,0.060,,,0.060,0.062,0.063"; dvCMBDel = "CMB Del,,,0.043,0.044,0.045,,,0.047,0.048,0.049,,,0.050,0.051,0.052"; dvKioskDel = "Kiosk Del,,,0.046,0.047,0.049,,,0.051,0.052,0.053,,,0.053,0.054,0.055"; dvApartDel = "Apart Del,,,0.059,0.060,0.062,,,0.064,0.066,0.067,,,0.067,0.069,0.070"; dvBuisDirDel = "Buis Dir Del,,,0.200,0.205,0.210,,,0.220,0.225,0.229,,,0.231,0.235,0.240"; dvRPODel = "RPO Del,,,0.894,0.916,0.939,,,0.984,1.003,1.024,,,1.029,1.049,1.070"; dvSLBDel = "SLB Del,,,0.894,0.916,0.939,,,0.984,1.003,1.024,,,1.029,1.049,1.070"; dvPickupDel = "Pickup,,,0.894,0.916,0.939,,,0.984,1.003,1.024,,,1.029,1.049,1.070"; dvFiftyKM = "50 KM,,,0.370,0.379,0.389,,,0.407,0.415,0.424,,,0.426,0.434,0.443"; dvFortyKM = "40 KM,,,0.463,0.474,0.486,,,0.509,0.519,0.530,,,0.532,0.543,0.554"; dvStopAllow = "Stops,,,0.074,0.076,0.078,,,0.081,0.083,0.085,,,0.085,0.087,0.089"; //dvResSort = "Res Sort,,,0.0771,0.079,0.081,,,0.085,0.087,0.088,,,0.089,0.090,0.092"; //dvFarmSort = "Farm Sort,,,0.0771,0.079,0.081,,,0.085,0.087,0.088,,,0.089,0.090,0.092"; //dvApartSort = "Apart Sort,,,0.0524,0.054,0.055,,,0.058,0.059,0.060,,,0.060,0.062,0.063"; //dvAMSBuisSort = "AMS Buis Sort,,,0.2467,0.253,0.259,,,0.271,0.277,0.282,,,0.284,0.289,0.295"; //dvBuisDirSort = "Buis Dir Sort,,,0.2467,0.253,0.259,,,0.271,0.277,0.282,,,0.284,0.289,0.295"; //dvCallerSort = "Caller Sort,,,0.2467,0.253,0.259,,,0.271,0.277,0.282,,,0.284,0.289,0.295"; //dvRMBDel = "RMB Del,,,0.0863,0.088,0.091,,,0.095,0.097,0.099,,,0.099,0.101,0.103"; //dvGMBDel = "GMB Del,,,0.0524,0.054,0.055,,,0.058,0.059,0.060,,,0.060,0.062,0.063"; //dvCMBDel = "CMB Del,,,0.0432,0.044,0.045,,,0.047,0.048,0.049,,,0.050,0.051,0.052"; //dvKioskDel = "Kiosk Del,,,0.0463,0.047,0.049,,,0.051,0.052,0.053,,,0.053,0.054,0.055"; //dvApartDel = "Apart Del,,,0.0586,0.060,0.062,,,0.064,0.066,0.067,,,0.067,0.069,0.070"; //dvBuisDirDel = "Buis Dir Del,,,0.2004,0.205,0.210,,,0.220,0.225,0.229,,,0.231,0.235,0.240"; //dvRPODel = "RPO Del,,,0.8942,0.916,0.939,,,0.984,1.003,1.024,,,1.029,1.049,1.070"; //dvSLBDel = "SLB Del,,,0.8942,0.916,0.939,,,0.984,1.003,1.024,,,1.029,1.049,1.070"; //dvPickupDel = "Pickup,,,0.8942,0.916,0.939,,,0.984,1.003,1.024,,,1.029,1.049,1.070"; //dvFiftyKM = "50 KM,,,0.370,0.379,0.389,,,0.407,0.415,0.424,,,0.426,0.434,0.443"; //dvFortyKM = "40 KM,,,0.4625,0.474,0.486,,,0.509,0.519,0.530,,,0.532,0.543,0.554"; //dvStopAllow = "Stops,,,0.074,0.076,0.078,,,0.081,0.083,0.085,,,0.085,0.087,0.089"; zoneMax[1] = ListtoArray(dvResSort, ","); zoneMax[2] = ListtoArray(dvFarmSort, ","); zoneMax[3] = ListtoArray(dvApartSort, ","); zoneMax[4] = ListtoArray(dvAMSBuisSort, ","); zoneMax[5] = ListtoArray(dvBuisDirSort, ","); zoneMax[6] = ListtoArray(dvCallerSort, ","); zoneMax[7] = ListtoArray(dvRMBDel, ","); zoneMax[8] = ListtoArray(dvGMBDel, ","); zoneMax[9] = ListtoArray(dvCMBDel, ","); zoneMax[10] = ListtoArray(dvKioskDel, ","); zoneMax[11] = ListtoArray(dvApartDel, ","); zoneMax[12] = ListtoArray(dvBuisDirDel, ","); zoneMax[13] = ListtoArray(dvRPODel, ","); zoneMax[14] = ListtoArray(dvSLBDel, ","); zoneMax[15] = ListtoArray(dvPickupDel, ","); zoneMax[16] = ListtoArray(dvFiftyKM, ","); zoneMax[17] = ListtoArray(dvFortyKM, ","); zoneMax[18] = ListtoArray(dvStopAllow, ","); // YEARS OF SERVICE FACTORS YOSFactor[1] = .85; YOSFactor[2] = .88; YOSFactor[3] = .91; YOSFactor[4] = .94; YOSFactor[5] = .97; YOSFactor[6] = 1; // WAGE INCREASES FOR ZONES 1, 2 and 3 //zoneAFactor[1] = 1; zoneAFactor[2] = zoneAFactor[1] * 1.025; zoneAFactor[3] = zoneAFactor[2] * 1.025; //zoneBFactor[1] = 1; zoneBFactor[2] = zoneBFactor[1] * 1.02; zoneBFactor[3] = zoneBFactor[2] * 1.02; //zoneCFactor[1] = 1; zoneCFactor[2] = zoneCFactor[1] * 1.02; zoneCFactor[3] = zoneCFactor[2] * 1.02; if (isdefined("form.saveSubmit")) { //VARIABLES TO ENSURE ENTERED VALUE IS DISPLAYED ON USER SCREEN //DISPLAY VARIABLES ARE NOT USED FOR CALCULATION dispcountResSort = form.countResSort; dispcountFarmSort = form.countFarmSort; dispcountApartSort = form.countApartSort; dispcountAMSBuisSort = form.countAMSBuisSort; dispcountBuisDirSort = form.countBuisDirSort; dispcountCallerSort = form.countCallerSort; dispcountRMBDel = form.countRMBDel; dispcountGMBDel = form.countGMBDel; dispcountCMBDel = form.countCMBDel; dispcountKioskDel = form.countKioskDel; dispcountApartDel = form.countApartDel; dispcountBuisDirDel = form.countBuisDirDel; dispcountRPODel = form.countRPODel; dispcountSLBDel = form.countSLBDel; dispcountPickupDel = form.countPickupDel; dispcountFiftyKM = form.countFiftyKM; dispcountFortyKM = form.countFortyKM; dispcountStopAllow = form.countStopAllow; // SORTATION TIME TOTAL CALCULATIONS AND VALIDATION minsResSort = doTimeValueCalc (tvResSort, countResSort); errorResSort = errorCheck (tvResSort, countResSort); minsFarmSort = doTimeValueCalc (tvFarmSort, countFarmSort); errorFarmSort = errorCheck (tvFarmSort, countFarmSort); minsApartSort = doTimeValueCalc (tvApartSort, countApartSort); errorApartSort = errorCheck (tvApartSort, countApartSort); minsAMSBuisSort = doTimeValueCalc (tvAMSBuisSort, countAMSBuisSort); errorAMSBuisSort = errorCheck (tvAMSBuisSort, countAMSBuisSort); minsBuisDirSort = doTimeValueCalc (tvBuisDirSort, countBuisDirSort); errorBuisDirSort = errorCheck (tvBuisDirSort, countBuisDirSort); minsCallerSort = doTimeValueCalc (tvCallerSort, countCallerSort); errorCallerSort = errorCheck (tvCallerSort, countCallerSort); minsSortTotal = minsResSort + minsFarmSort + minsApartSort + minsAMSBuisSort + minsBuisDirSort + minsCallerSort; // DELIVERY TIME TOTAL CALCULATIONS AND VALIDATION minsRMBDel = doTimeValueCalc (tvRMBDel, countRMBDel); errorRMBDel = errorCheck (tvRMBDel, countRMBDel); minsGMBDel = doTimeValueCalc (tvGMBDel, countGMBDel); errorGMBDel = errorCheck (tvGMBDel, countGMBDel); minsCMBDel = doTimeValueCalc (tvCMBDel, countCMBDel); errorCMBDel = errorCheck (tvCMBDel, countCMBDel); minsKioskDel = doTimeValueCalc (tvKioskDel, countKioskDel); errorKioskDel = errorCheck (tvKioskDel, countKioskDel); minsApartDel = doTimeValueCalc (tvApartDel, countApartDel); errorApartDel = errorCheck (tvApartDel, countApartDel); minsBuisDirDel = doTimeValueCalc (tvBuisDirDel, countBuisDirDel); errorBuisDirDel = errorCheck (tvBuisDirDel, countBuisDirDel); minsRPODel = doTimeValueCalc (tvRPODel, countRPODel); errorRPODel = errorCheck (tvRPODel, countRPODel); minsSLBDel = doTimeValueCalc (tvSLBDel, countSLBDel); errorSLBDel = errorCheck (tvSLBDel, countSLBDel); minsPickupDel = doTimeValueCalc (tvPickupDel, countPickupDel); errorPickupDel = errorCheck (tvPickupDel, countPickupDel); minsDelTotal = minsRMBDel + minsGMBDel + minsCMBDel + minsKioskDel + minsApartDel + minsBuisDirDel + minsRPODel + minsSLBDel + minsPickupDel; // DRIVE ALLOWANCE TIME TOTAL CALCULATIONS AND VALIDATION minsFiftyKM = doTimeValueCalc (tvFiftyKM, countFiftyKM); errorFiftyKM = errorCheck (tvFiftyKM, countFiftyKM); minsFortyKM = doTimeValueCalc (tvFortyKM, countFortyKM); errorFortyKM = errorCheck (tvFortyKM, countFortyKM); minsDriveAllowanceTotal = minsFiftyKM + minsFortyKM; // STOP ALLOWANCE TIME TOTAL CALCULATIONS AND VALIDATION minsStopAllow = doTimeValueCalc (tvStopAllow, countStopAllow); errorStopAllow = errorCheck (tvStopAllow, countStopAllow); minsStopAllowTotal = minsStopAllow; minsRMSTotal = minsSortTotal + minsDelTotal + minsDriveAllowanceTotal + minsStopAllowTotal; hoursRMSTotal = minsRMSTotal/60; //hoursRMSTotal = NumberFormat(hoursRMSTotal, "99.99"); // YEARS OF SERVICE and ZONE SELECT STICKY VARIABLES YOSaS = ""; YOSbS = ""; YOScS = ""; YOSdS = ""; YOSeS = ""; YOSfS = ""; if (form.YOS EQ 1) {YOSaS = "SELECTED='SELECTED'";} if (form.YOS EQ 2) {YOSbS = "SELECTED='SELECTED'";} if (form.YOS EQ 3) {YOScS = "SELECTED='SELECTED'";} if (form.YOS EQ 4) {YOSdS = "SELECTED='SELECTED'";} if (form.YOS EQ 5) {YOSeS = "SELECTED='SELECTED'";} if (form.YOS EQ 6) {YOSfS = "SELECTED='SELECTED'";} zoneaS = ""; zonebS = ""; zonecS = ""; zShift = 4; if (form.zone EQ 1) {zoneaS = "SELECTED='SELECTED'"; zShift = 1;} if (form.zone EQ 2) {zonebS = "SELECTED='SELECTED'"; zShift = 4;} if (form.zone EQ 3) {zonecS = "SELECTED='SELECTED'"; zShift = 7;} //CALCULATE YEARLY INCREASES BASED ON ZONE, YOS and ACTIVITY COMPENSATION for (incr = 1; incr LTE 3; incr = incr + 1) { zKey = zShift + incr; compResSort[#incr#] = activityAmount(zoneMax[1][#zKey#], YOSFactor[#form.YOS#]); compFarmSort[#incr#] = activityAmount(zoneMax[2][#zKey#], YOSFactor[#form.YOS#]); compApartSort[#incr#] = activityAmount(zoneMax[3][#zKey#], YOSFactor[#form.YOS#]); compAMSBuisSort[#incr#] = activityAmount(zoneMax[4][#zKey#], YOSFactor[#form.YOS#]); compBuisDirSort[#incr#] = activityAmount(zoneMax[5][#zKey#], YOSFactor[#form.YOS#]); compCallerSort[#incr#] = activityAmount(zoneMax[6][#zKey#], YOSFactor[#form.YOS#]); compRMBDel[#incr#] = activityAmount(zoneMax[7][#zKey#], YOSFactor[#form.YOS#]); compGMBDel[#incr#] = activityAmount(zoneMax[8][#zKey#], YOSFactor[#form.YOS#]); compCMBDel[#incr#] = activityAmount(zoneMax[9][#zKey#], YOSFactor[#form.YOS#]); compKioskDel[#incr#] = activityAmount(zoneMax[10][#zKey#], YOSFactor[#form.YOS#]); compApartDel[#incr#] = activityAmount(zoneMax[11][#zKey#], YOSFactor[#form.YOS#]); compBuisDirDel[#incr#] = activityAmount(zoneMax[12][#zKey#], YOSFactor[#form.YOS#]); compRPODel[#incr#] = activityAmount(zoneMax[13][#zKey#], YOSFactor[#form.YOS#]); compSLBDel[#incr#] = activityAmount(zoneMax[14][#zKey#], YOSFactor[#form.YOS#]); compPickupDel[#incr#] = activityAmount(zoneMax[15][#zKey#], YOSFactor[#form.YOS#]); compFiftyKM[#incr#] = activityAmount(zoneMax[16][#zKey#], YOSFactor[#form.YOS#]); compFortyKM[#incr#] = activityAmount(zoneMax[17][#zKey#], YOSFactor[#form.YOS#]); compStopAllow[#incr#] = activityAmount(zoneMax[18][#zKey#], YOSFactor[#form.YOS#]); } } else { //NOT SUBMITTED, THEN DEFINE MOST VARIABLES minsResSort = " "; errorResSort = "errorFalse"; minsFarmSort = " "; errorFarmSort = "errorFalse"; minsApartSort = " "; errorApartSort = "errorFalse"; minsAMSBuisSort = " "; errorAMSBuisSort = "errorFalse"; minsBuisDirSort = " "; errorBuisDirSort = "errorFalse"; minsCallerSort = " "; errorCallerSort = "errorFalse"; minsSortTotal = " "; minsRMBDel = " "; errorRMBDel = "errorFalse"; minsGMBDel = " "; errorGMBDel = "errorFalse"; minsCMBDel = " "; errorCMBDel = "errorFalse"; minsKioskDel = " "; errorKioskDel = "errorFalse"; minsApartDel = " "; errorApartDel = "errorFalse"; minsBuisDirDel = " "; errorBuisDirDel = "errorFalse"; minsRPODel = " "; errorRPODel = "errorFalse"; minsSLBDel = " "; errorSLBDel = "errorFalse"; minsPickupDel = " "; errorPickupDel = "errorFalse"; minsDelTotal = " "; minsFiftyKM = " "; errorFiftyKM = "errorFalse"; minsFortyKM = " "; errorFortyKM = "errorFalse"; minsDriveAllowanceTotal = " "; minsStopAllow = " "; errorStopAllow = "errorFalse"; minsStopAllowTotal = " "; form.countResSort = ""; form.countFarmSort = ""; form.countApartSort = ""; form.countAMSBuisSort = ""; form.countBuisDirSort = ""; form.countCallerSort = ""; form.countRMBDel = ""; form.countGMBDel = ""; form.countCMBDel = ""; form.countKioskDel = ""; form.countApartDel = ""; form.countBuisDirDel = ""; form.countRPODel = ""; form.countSLBDel = ""; form.countPickupDel = ""; form.countFiftyKM = ""; form.countFortyKM = ""; form.countStopAllow = ""; dispcountResSort = ""; dispcountFarmSort = ""; dispcountApartSort = ""; dispcountAMSBuisSort = ""; dispcountBuisDirSort = ""; dispcountCallerSort = ""; dispcountRMBDel = ""; dispcountGMBDel = ""; dispcountCMBDel = ""; dispcountKioskDel = ""; dispcountApartDel = ""; dispcountBuisDirDel = ""; dispcountRPODel = ""; dispcountSLBDel = ""; dispcountPickupDel = ""; dispcountFiftyKM = ""; dispcountFortyKM = ""; dispcountStopAllow = ""; YOSaS = ""; YOSbS = ""; YOScS = ""; YOSdS = ""; YOSeS = ""; YOSfS = ""; form.YOS = ""; zoneaS = ""; zonebS = ""; zonecS = ""; form.zone = ""; minsRMSTotal = " "; hoursRMSTotal = " "; } if (isdefined("form.saveSubmit") AND minsRMSTotal NEQ 0) { rdMainHeaderRow = "#langCompTableHeader#"; rdHeaderRow = "201320142015"; rdResSort = "#compResSort[1]# #compResSort[2]# #compResSort[3]#"; rdFarmSort = "#compFarmSort[1]# #compFarmSort[2]# #compFarmSort[3]#"; rdApartSort = "#compApartSort[1]# #compApartSort[2]# #compApartSort[3]#"; rdAMSBuisSort = "#compAMSBuisSort[1]# #compAMSBuisSort[2]# #compAMSBuisSort[3]#"; rdBuisDirSort = "#compBuisDirSort[1]# #compBuisDirSort[2]# #compBuisDirSort[3]#"; rdCallerSort = "#compCallerSort[1]# #compCallerSort[2]# #compCallerSort[3]#"; rdRMBDel = "#compRMBDel[1]# #compRMBDel[2]# #compRMBDel[3]#"; rdGMBDel = "#compGMBDel[1]# #compGMBDel[2]# #compGMBDel[3]#"; rdCMBDel = "#compCMBDel[1]# #compCMBDel[2]# #compCMBDel[3]#"; rdKioskDel = "#compKioskDel[1]# #compKioskDel[2]# #compKioskDel[3]#"; rdApartDel = "#compApartDel[1]# #compApartDel[2]# #compApartDel[3]#"; rdBuisDirDel = "#compBuisDirDel[1]# #compBuisDirDel[2]# #compBuisDirDel[3]#"; rdRPODel = "#compRPODel[1]# #compRPODel[2]# #compRPODel[3]#"; rdSLBDel = "#compSLBDel[1]# #compSLBDel[2]# #compSLBDel[3]#"; rdPickupDel = "#compPickupDel[1]# #compPickupDel[2]# #compPickupDel[3]#"; rdFiftyKM = "#compFiftyKM[1]# #compFiftyKM[2]# #compFiftyKM[3]#"; rdFortyKM = "#compFortyKM[1]# #compFortyKM[2]# #compFortyKM[3]#"; rdStopAllow = "#compStopAllow[1]# #compStopAllow[2]# #compStopAllow[3]#"; } else { rdMainHeaderRow = ""; rdHeaderRow = ""; rdResSort = ""; rdFarmSort = ""; rdApartSort = ""; rdAMSBuisSort = ""; rdBuisDirSort = ""; rdCallerSort = ""; rdRMBDel = ""; rdGMBDel = ""; rdCMBDel = ""; rdKioskDel = ""; rdApartDel = ""; rdBuisDirDel = ""; rdRPODel = ""; rdSLBDel = ""; rdPickupDel = ""; rdFiftyKM = ""; rdFortyKM = ""; rdStopAllow = ""; } if (isdefined("form.saveSubmit") AND minsRMSTotal NEQ 0) { yearOne = centsCount(1); yearTwo = centsCount(2); yearThree = centsCount(3); } else { yearOne = ""; yearTwo = ""; yearThree = ""; }
#langBrowserTitle#
CUPW-STTP

#langPageHeader#

English Français

#langWagesTableHeader#
#langWagesItemHeader# 2013 2014 2015
#langDailyCents# #NumberFormat((yearOne), "99999.99")# #NumberFormat((yearTwo), "99999.99")# #NumberFormat((yearThree), "99999.99")#
#langDailyDollars# #NumberFormat((yearOne / 100), "9999.99")# #NumberFormat((yearTwo / 100), "9999.99")# #NumberFormat((yearThree / 100), "9999.99")#
#langHourlyWage# #NumberFormat((yearOne / 100 / hoursRMSTotal), "99.99")# #NumberFormat((yearTwo / 100 / hoursRMSTotal), "99.99")# #NumberFormat((yearThree / 100 / hoursRMSTotal), "99.99")#
#langRMSMins# #minsRMSTotal#
#langRMSHours# #NumberFormat((hoursRMSTotal), "99.99")#

#rdMainHeaderRow# #rdHeaderRow# #rdResSort# #rdFarmSort# #rdApartSort# #rdAMSBuisSort# #rdBuisDirSort# #rdCallerSort#
#langTVTableHeader#
#langSortHeader# #langTVHeader# #langCountHeader# #langTimeMinsHeader#
#langResSort# #tvResSort# #minsResSort#
#langFarmSort# #tvFarmSort# #minsFarmSort#
#langApartSort# #tvApartSort# #minsApartSort#
#langAMSBuisSort# #tvAMSBuisSort# #minsAMSBuisSort#
#langBuisDirSort# #tvBuisDirSort# #minsBuisDirSort#
#langCallerSort# #tvCallerSort# #minsCallerSort#
#langSortTotal# #minsSortTotal#

#rdHeaderRow# #rdRMBDel# #rdGMBDel# #rdCMBDel# #rdKioskDel# #rdApartDel# #rdBuisDirDel# #rdRPODel# #rdSLBDel# #rdPickupDel#
#langDelHeader# #langTVHeader# #langCountHeader# #langTimeMinsHeader#
#langRMBDel# #tvRMBDel# #minsRMBDel#
#langGMBDel# #tvGMBDel# #minsGMBDel#
#langCMBDel# #tvCMBDel# #minsCMBDel#
#langKioskDel# #tvKioskDel# #minsKioskDel#
#langApartDel# #tvApartDel# #minsApartDel#
#langBuisDirDel# #tvBuisDirDel# #minsBuisDirDel#
#langRPODel# #tvRPODel# #minsRPODel#
#langSLBDel# #tvSLBDel# #minsSLBDel#
#langPickupDel# #tvPickupDel# #minsPickupDel#
#langDelTotal# #minsDelTotal#

#rdHeaderRow# #rdFiftyKM# #rdFortyKM#
#langDriveAllowHeader# #langTVHeader# #langDriveCountHeader# #langTimeMinsHeader#
#langFiftyKM# #tvFiftyKM# #minsFiftyKM#
#langFortyKM# #tvFortyKM# #minsFortyKM#
#langDriveAllowTotal# #minsDriveAllowanceTotal#

#rdHeaderRow# #rdStopAllow#
#langStopAllowHeader# #langTVHeader# #langStopCountHeader# #langTimeMinsHeader#
#langStopAllow# #tvStopAllow# #minsStopAllow#
#langStopAllowTotal# #minsStopAllowTotal#

#langYOSLabel#
#langZoneLabel#
#langZoneInfo#

#langDisclaimer#

#langGoToTop# | #langCUPWurl# | #langPrivacy#