HR, Payroll & Gratuity Calculators — Saifs AI
hr_payroll_calculatorsCalculate payroll, gratuity and workforce metrics exactly: overtime pay, pro-rata salary for joiners and leavers, leave accrual (OSH Code 1 day per 20 worked), gratuity (15/26, ₹20 lakh cap, 5-year rule, fixed-term 1 year under the Code on Social Security from 21-Nov-2025); attrition, average headcount, absenteeism, cost per hire, revenue per employee, billable utilisation. Returns a standard-library Python script with only these calculators (payroll_calculator, workforce_metrics_calculator) to run in your code sandbox; each answer gives result, formula, inputs used, rounding, rule version and effective date. Inputs: tools (narrow to some of these calculators), calls ([{tool, operation, inputs, rounding?, as_of?}] baked into the script; a calculator from another area named in calls is added), calls_path (JSON file of calls in your sandbox). Calculation never runs on this server or any API. Not for EMI / interest / NPV / IRR (refused), nor salary income-tax, PF / ESI contributions, legal advice. Operation and input names: business_calculator_list_formulas.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "hr_payroll_calculators"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| calls | No | Calculations to bake into the script (their calculators are included). | |
| tools | No | Narrow the script to some of this area's calculators (default: all of them). | |
| calls_path | No | JSON file of calls already in your sandbox. | |
| full_catalog | No | Keep descriptions and worked examples inside the script (larger). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| area | No | ||
| notes | No | ||
| script | Yes | ||
| language | No | ||
| requires | No | ||
| calls_path | No | ||
| operations | No | ||
| call_format | No | ||
| instructions | Yes | ||
| writes_files | No | ||
| calls_baked_in | No | ||
| engine_version | Yes | ||
| included_tools | Yes | ||
| server_computes | No | ||
| network_access_required | No |