肯尼亚税率:精确的薪资与 PAYE 计算器 - Openclaw Skills

作者:互联网

2026-03-26

数值计算

什么是 肯尼亚税率技能?

肯尼亚税率技能是一个强大的工具,旨在根据肯尼亚税法自动执行复杂的薪资计算。它为开发人员和企业提供了一个易于集成的解决方案,用于确定净工资、法定扣除额和雇主缴纳部分。通过利用这一 Openclaw Skills 资源,用户可以确保在重大监管更新(例如从 NHIF 到 SHIF 的过渡以及 NSSF 阶梯的变化)中,其财务工作流程保持准确。

该技能消除了跟踪累进税率档次和减免额度的手动负担,使其成为任何针对肯尼亚市场的 HR 或金融科技应用的重要组成部分。作为 Openclaw Skills 生态系统的一部分,它专注于现代开发环境的高精度和易用性。

下载入口:https://github.com/openclaw/skills/tree/main/skills/enjuguna/kenya-tax-rates

安装与下载

1. ClawHub CLI

从源直接安装技能的最快方式。

npx clawhub@latest install kenya-tax-rates

2. 手动安装

将技能文件夹复制到以下位置之一

全局模式 ~/.openclaw/skills/ 工作区 /skills/

优先级:工作区 > 本地 > 内置

3. 提示词安装

将此提示词复制到 OpenClaw 即可自动安装。

请帮我使用 Clawhub 安装 kenya-tax-rates。如果尚未安装 Clawhub,请先安装(npm i -g clawhub)。

肯尼亚税率技能 应用场景

  • 企业系统内肯尼亚员工的每月薪资自动生成。
  • HR 团队在招聘和聘用过程中快速估算净工资。
  • 集成到会计软件中,确保符合 KRA 和 SHIF 指南的法定合规性。
  • 计算保险费、养老金缴纳和抵押贷款的精确税收减免。
肯尼亚税率技能 工作原理
  1. 该技能接受输入数据,如税前工资和可选的减免参数(如保险费或养老金缴纳)。
  2. 它根据交易日期自动识别适用的 NSSF 限额,根据需要切换 2024 和 2025 阶梯。
  3. 系统计算法定扣除额,包括 1.5% 的住房公积金和 2.75% 的 SHIF(社会医疗保险基金)。
  4. 它对应纳税收入应用 5 档累进 PAYE 税率,范围从 10% 到 35%。
  5. 从总税额中扣除个人税收减免和保险减免,以确定最终的 PAYE 金额。
  6. 该技能输出一个全面的 JSON 对象,包含净工资、员工扣除额和雇主缴纳部分。

肯尼亚税率技能 配置指南

要将此 Openclaw Skills 功能集成到您的项目中,请通过 npm 安装软件包:

npm install kenya-tax-rates

然后,您可以将特定的计算函数或完整的薪资明细实用工具导入到您的 TypeScript 或 JavaScript 文件中。

肯尼亚税率技能 数据架构与分类体系

该技能根据当前的肯尼亚立法框架组织税务数据。以下是该技能处理的数据点和元数据摘要:

组件 费率 / 限额 背景
PAYE 档次 10%, 25%, 30%, 32.5%, 35% 适用于超过 KES 24,000 的收入
SHIF 2.75% 自 2024 年 10 月起取代 NHIF
住房公积金 1.5% 经济适用房强制扣除
个人减免 KES 2,400 每月标准扣除
NSSF 上限 KES 36,000 (2024) / 72,000 (2025) 分级养老金缴款限额
减免 保险与养老金 分别为保费的 15% 和最高 KES 30,000

name: kenya-tax-rates description: Calculate Kenya payroll deductions - PAYE, SHIF, NSSF, Housing Levy with accurate 2024/2025 rates

Kenya Tax Rates Skill

Calculate Kenya payroll taxes and deductions with up-to-date rates for PAYE, SHIF, NSSF, and Housing Levy.

Features

  • PAYE - 5-band progressive tax (10% to 35%)
  • SHIF - 2.75% Social Health Insurance (replaced NHIF Oct 2024)
  • NSSF - Two-tier pension with auto date-based limits
  • Housing Levy - 1.5% Affordable Housing Levy
  • Tax Reliefs - Personal, insurance, pension, mortgage

Usage

Install the npm package:

npm install kenya-tax-rates

Quick Net Salary

import { getNetSalary } from 'kenya-tax-rates';

const netSalary = getNetSalary(100000);
// Returns ~KES 75,000

Full Payroll Breakdown

import { calculatePayroll } from 'kenya-tax-rates';

const result = calculatePayroll({
  grossSalary: 100000,
  pensionContribution: 5000,  // optional
  insurancePremium: 2000,     // optional
});

// Returns:
// {
//   grossSalary: 100000,
//   taxableIncome: 93590,
//   deductions: { shif: 2750, nssf: 2160, housingLevy: 1500, paye: 18594 },
//   netSalary: 74995,
//   employerContributions: { nssf: 2160, housingLevy: 1500 }
// }

Individual Calculators

import { calculatePaye, calculateShif, calculateNssf, calculateHousingLevy } from 'kenya-tax-rates';

// PAYE with reliefs
const paye = calculatePaye(85000);

// SHIF (2.75%, min KES 300, no cap)
const shif = calculateShif(50000); // 1375

// NSSF (auto-detects 2024/2025 rates based on current date)
const nssf = calculateNssf(80000);

// Housing Levy (1.5%)
const levy = calculateHousingLevy(100000); // 1500

Current Tax Rates

PAYE Monthly Bands

Income (KES) Rate
0 - 24,000 10%
24,001 - 32,333 25%
32,334 - 500,000 30%
500,001 - 800,000 32.5%
Above 800,000 35%

NSSF Limits (auto-selected by date)

Period Lower Limit Upper Limit Max Contribution
Feb 2024 - Jan 2025 KES 7,000 KES 36,000 KES 2,160
From Feb 2025 KES 8,000 KES 72,000 KES 4,320

Reliefs

  • Personal Relief: KES 2,400/month
  • Insurance Relief: 15% of premiums, max KES 5,000/month
  • Pension Deduction: Max KES 30,000/month

API Reference

Function Description
calculatePayroll(input) Full payroll with all deductions
getNetSalary(gross, date?) Quick net salary calculation
calculatePaye(taxableIncome) PAYE with reliefs
calculateShif(grossSalary) SHIF contribution
calculateNssf(earnings, date?) NSSF two-tier contribution
calculateHousingLevy(grossSalary) Housing levy (1.5%)

Source

  • npm: kenya-tax-rates
  • GitHub: enjuguna/kenya-tax-rates