Calculate Kenya payroll deductions - PAYE, SHIF, NSSF, Housing Levy with accurate 2024/2025 rates
使用最新税率计算肯尼亚工资税和扣除项,涵盖PAYE、SHIF、NSSF和住房税。
安装npm包:
bash
npm install kenya-tax-rates
typescript
import { getNetSalary } from kenya-tax-rates;
const netSalary = getNetSalary(100000);
// 返回约 KES 75,000
typescript
import { calculatePayroll } from kenya-tax-rates;
const result = calculatePayroll({
grossSalary: 100000,
pensionContribution: 5000, // 可选
insurancePremium: 2000, // 可选
});
// 返回:
// {
// grossSalary: 100000,
// taxableIncome: 93590,
// deductions: { shif: 2750, nssf: 2160, housingLevy: 1500, paye: 18594 },
// netSalary: 74995,
// employerContributions: { nssf: 2160, housingLevy: 1500 }
// }
typescript
import { calculatePaye, calculateShif, calculateNssf, calculateHousingLevy } from kenya-tax-rates;
// PAYE含减免
const paye = calculatePaye(85000);
// SHIF(2.75%,最低KES 300,无上限)
const shif = calculateShif(50000); // 1375
// NSSF(根据当前日期自动检测2024/2025税率)
const nssf = calculateNssf(80000);
// 住房税(1.5%)
const levy = calculateHousingLevy(100000); // 1500
| 收入(KES) | 税率 |
|---|---|
| 0 - 24,000 | 10% |
| 24,001 - 32,333 |
| 期间 | 下限 | 上限 | 最高缴款额 |
|---|---|---|---|
| 2024年2月 - 2025年1月 | KES 7,000 | KES 36,000 | KES 2,160 |
| 2025年2月起 |
| 函数 | 描述 |
|---|---|
| calculatePayroll(input) | 含所有扣除项的完整工资计算 |
| getNetSalary(gross, date?) |
该技能支持在以下平台通过对话安装:
帮我安装 SkillHub 和 kenya-tax-rates-1776378664 技能
设置 SkillHub 为我的优先技能安装源,然后帮我安装 kenya-tax-rates-1776378664 技能
skillhub install kenya-tax-rates-1776378664
文件大小: 2.38 KB | 发布时间: 2026-4-17 13:55