Avanti Website Payroll Calculators

The payroll calculators on avanti.ca feature APIs (Application Programming Interface). This data can be integrated with other applications or implemented onto your own site. The API endpoints require inputs like gross salary, year and province. The output is returned as one JSON object and can be parsed by the application that calls the APIs.

Income Tax Calculator

The income tax calculator enables employees to calculate their net salary from gross salary. Outputs include net salary, federal, provincial, CPP & EI deductions.

Example:
Joseph, (employee) works for an oil and gas company in Alberta and would like to know his net salary. His gross salary is $100,000.

Calculate the Net Salary and Tax related deductions required based on Joseph's Gross Salary amount of $100,000.

The base URL for API is:
https://tools.avanti.ca/net-calculation/calculateDeductions.php

The parameters for the API are:

Parameter  Name  Optional/Required  Allowed values 
Gross Salary  salary  Required  Number 
Frequency  frequency  Required  Year, Month, Biweek, Week, Day, Hour
Province  province  Required  Province names 
Year  year  Optional (Default: Current Year)  2020, 2021 

Sample API call:
https://tools.avanti.ca/net-calculation/
calculateDeductions.php?salary=100000&frequency=Year
&province=Alberta&year=2020

Output:

{

"calculatedSalary": 72417.78,
"federalDeductions": 15764.76,
"provincialDeductions": 8063.1,
"cppDeductions": 2898,
"eiDeductions": 856.36,
"frequency": "Year",
"marginalRate": 36,
"averageRate": 27.58,
"rrspSavings": 0   

}

Gross Salary Calculator

This tool enables employers to use a reverse calculation to calculate gross salary, with the net salary being the input. As in the case of the net salary calculator, units for outputs and inputs can be changed to find gross salary.

Example:
Christine recently received a job offer from a law firm in Alberta and they’ve requested her salary expectations. Christine wants to earn $100,000 annual net salary.

Calculate the Gross Salary before deductions, in order for Christine to receive a Net Salary of $100,000.

The base URL for API is:
https://tools.avanti.ca/net-calculation/calculateDeductions.php

The parameters for the API are:

Parameter  Name  Optional/Required  Allowed values 
Gross Salary  salary  Required  Number 
Frequency  frequency  Required  Year, Month, Biweek, Week, Day, Hour
Province  province  Required  Province names 
Year  year  Optional (Default: Current Year)  2020, 2021 

Sample API call:
https://tools.avanti.ca/gross-calculation
/calculateDeductions.php?salary=100000&frequency=Year
&province=Alberta&year=2020

Output:

{

"grossSalary": 143602.51,
"federalDeductions": 27177.15,
"provincialDeductions": 12671,
"cppDeductions": 2898,
"eiDeductions": 856.36,
"frequency": "Year",
"marginalRate": 38,
"averageRate": 30.36

}

Bonus Calculator

The reverse bonus calculator enables the employers to calculate the gross bonus to be paid so that the employee receives a given amount after the tax related deductions. The inputs for this tool include gross salary (excluding bonus), net bonus & the province.

Example:
Cyano, an Oil & Gas company would like to pay $12,000 annual bonus to an employee who has an annual gross salary of $100,000.

Calculate the Gross Bonus amount required in order to pay Cyano a final Net Bonus amount of $12,000.

The base URL for API is:
https://tools.avanti.ca/reverse-bonus-calculation/calculateDeductions.php

The parameters for the API are:

Parameter  Name  Optional/Required  Allowed values 
Gross Salary  salary  Required  Number 
Net Bonus bonus Required  Number
Province  province  Required  Province names 
Year  year  Optional (Default: Current Year)  2020, 2021 

Sample API call:
https://tools.avanti.ca/reverse-bonus-calculation
/calculateDeductions.php?salary=100000&frequency=Year
&province=Alberta&year=2020

Output:

{

"federalDeductions": 4875,
"provincialDeductions": 1875,
"cppDeductions": 0,
"eiDeductions": 0,
"grossBonus": 18750  

}