1. Sum all male members
2. Sum all female members
3. Sum all male total salaries and calculate average male salary
4. Sum all female total salaries and calculate average female salary
5. If there are no males or females OR total males or females average salaries equals to 0 we return 0% (as it is impossible to calculate pay gap)
6. If there is at least one representative of each gender with legit salaries, we use the formula: (averageMaleSalary - averageFemaleSalary / averageMaleSalary) * 100% (rounded to full number)
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article