Skip to content
HALOWERK

Finopswerk

accumulating sick leave liability

Measures one closing salary-only liability for non-vesting accumulating sick leave. For N identical employees with unused old carry C and next-year entitlement E (used first), the caller supplies three scenarios of future absence days a_j with probabilities p_j, expected daily salary w and the previous booked liability B. Per scenario, incremental old carry use=min(C,max(a_j-E,0)); liability L=N*w*SUM(p_j*incremental_j); expense adjustment=L-B. This is not N*C*w.

POST https://finops.halowerk.com/v1/accumulating-sick-leave-liability

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
employeesintegerYes
carry_nintegerYes
new_entitlement_nintegerYes
absence_narrayYes
probability_bparrayYes
daily_salary_nintegerYes
prior_book_nintegerYes
day_denominatorintegerYes
amount_denominatorintegerYes
reportobjectYes
Show full input schema
{
  "type": "object",
  "required": [
    "employees",
    "carry_n",
    "new_entitlement_n",
    "absence_n",
    "probability_bp",
    "daily_salary_n",
    "prior_book_n",
    "day_denominator",
    "amount_denominator",
    "report"
  ],
  "properties": {
    "employees": {
      "type": "integer",
      "minimum": 1,
      "maximum": 1000
    },
    "carry_n": {
      "type": "integer",
      "minimum": 0,
      "maximum": 100
    },
    "new_entitlement_n": {
      "type": "integer",
      "minimum": 1,
      "maximum": 100
    },
    "absence_n": {
      "type": "array",
      "minItems": 3,
      "maxItems": 3,
      "items": {
        "type": "integer",
        "minimum": 0,
        "maximum": 100
      }
    },
    "probability_bp": {
      "type": "array",
      "minItems": 3,
      "maxItems": 3,
      "items": {
        "type": "integer",
        "minimum": 0,
        "maximum": 10000
      }
    },
    "daily_salary_n": {
      "type": "integer",
      "minimum": 0,
      "maximum": 1000000
    },
    "prior_book_n": {
      "type": "integer",
      "minimum": 0,
      "maximum": 1000000000
    },
    "day_denominator": {
      "type": "integer",
      "minimum": 1,
      "maximum": 10
    },
    "amount_denominator": {
      "type": "integer",
      "minimum": 1,
      "maximum": 1000
    },
    "report": {
      "type": "object",
      "minProperties": 21,
      "maxProperties": 21,
      "propertyNames": {
        "enum": [
          "employees",
          "carry_days",
          "new_entitlement_days",
          "daily_salary",
          "prior_book",
          "mean_absence_days",
          "paid_days_WITH_carry",
          "paid_days_WITHOUT_carry",
          "scenario0_extra_days",
          "scenario1_extra_days",
          "scenario2_extra_days",
          "additional_days_per_employee",
          "additional_days_cohort",
          "unused_days_face_cohort",
          "unused_salary_face",
          "expected_liability",
          "expense_adjustment",
          "closing_liability",
          "mean_clamp_wrong_days_cohort",
          "day_gap",
          "money_gap"
        ]
      },
      "additionalProperties": {
        "type": "object",
        "required": [
          "n",
          "d"
        ],
        "propertyNames": {
          "enum": [
            "n",
            "d"
          ]
        },
        "additionalProperties": {
          "type": [
            "string",
            "null"
          ],
          "minLength": 1,
          "maxLength": 64
        }
      }
    }
  },
  "additionalProperties": false
}

Open original schema

Published input example

{
  "employees": 100,
  "carry_n": 4,
  "new_entitlement_n": 10,
  "absence_n": [
    8,
    13,
    0
  ],
  "probability_bp": [
    9200,
    800,
    0
  ],
  "daily_salary_n": 100,
  "prior_book_n": 0,
  "day_denominator": 2,
  "amount_denominator": 1,
  "report": {
    "employees": {
      "n": "100",
      "d": "1"
    },
    "carry_days": {
      "n": "2",
      "d": "1"
    },
    "new_entitlement_days": {
      "n": "5",
      "d": "1"
    },
    "daily_salary": {
      "n": "100",
      "d": "1"
    },
    "prior_book": {
      "n": "0",
      "d": "1"
    },
    "mean_absence_days": {
      "n": "21",
      "d": "5"
    },
    "paid_days_WITH_carry": {
      "n": "21",
      "d": "5"
    },
    "paid_days_WITHOUT_carry": {
      "n": "102",
      "d": "25"
    },
    "scenario0_extra_days": {
      "n": "0",
      "d": "1"
    },
    "scenario1_extra_days": {
      "n": "3",
      "d": "2"
    },
    "scenario2_extra_days": {
      "n": "0",
      "d": "1"
    },
    "additional_days_per_employee": {
      "n": "3",
      "d": "25"
    },
    "additional_days_cohort": {
      "n": "12",
      "d": "1"
    },
    "unused_days_face_cohort": {
      "n": "200",
      "d": "1"
    },
    "unused_salary_face": {
      "n": "20000",
      "d": "1"
    },
    "expected_liability": {
      "n": "1200",
      "d": "1"
    },
    "expense_adjustment": {
      "n": "1200",
      "d": "1"
    },
    "closing_liability": {
      "n": "1200",
      "d": "1"
    },
    "mean_clamp_wrong_days_cohort": {
      "n": "0",
      "d": "1"
    },
    "day_gap": {
      "n": "0",
      "d": "1"
    },
    "money_gap": {
      "n": "0",
      "d": "1"
    }
  }
}

Result & documentation

Machine-readable documentation of this hub

Source of this page: the published HALOWERK catalog. Updated: 2026-11-17 UTC.

More endpoints in this hub

All endpoints in this hub โ†’