# Count Malaysia Division Working Days

> Counts working and non-working dates for a selected Malaysian division over the pinned 2027 schedule.

- Calculator id: `malaysia-working-days-between` · Category: Everyday Life (`everyday`) · Tool name: `count_my_working_days`
- Canonical page: https://tttkmbb.com/everyday/malaysia-working-days-between · This document: https://tttkmbb.com/everyday/malaysia-working-days-between.md · JSON definition: https://tttkmbb.com/everyday/malaysia-working-days-between.json

## Purpose

Counts working and non-working dates for a selected Malaysian division over the pinned 2027 schedule.

**Use when:** You need an auditable division-specific count.

**Do not use when:** The division is unknown or employer/sector replacement-day rules matter.

## Example user requests

- Count Kuala Lumpur working days from 2027-02-01 to 2027-02-15.


## Input

| Parameter | Type | Unit | Required | Description |
| --- | --- | --- | --- | --- |
| `start_date` | date |  | required | First date in 2027. |
| `end_date` | date |  | required | Last date in 2027. |
| `division` | enum: KUL \| LBN \| PJY \| JHR \| KDH \| KTN \| MLK \| NSN \| PHG \| PRK \| PLS \| PNG \| SBH \| SWK \| SGR \| TRG |  | required | Required federal-territory/state code: KUL, LBN, PJY, JHR, KDH, KTN, MLK, NSN, PHG, PRK, PLS, PNG, SBH, SWK, SGR or TRG. |
| `include_start_date` | boolean |  | optional, default true | Whether start_date participates. |
| `include_end_date` | boolean |  | optional, default true | Whether end_date participates. |

## Output

| Field | Type | Unit | Description |
| --- | --- | --- | --- |
| `normalized_start_date` | date |  | Earlier endpoint. |
| `normalized_end_date` | date |  | Later endpoint. |
| `working_days` | integer |  | Working dates counted. |
| `non_working_days` | integer |  | Weekend and official event dates. |
| `public_holidays_counted` | list |  | Official events in range. |
| `territory` | string |  | MY. |
| `territory_name` | string |  | Malaysia. |
| `division` | string |  | Normalized division code. |
| `division_name` | string |  | Federal territory or state. |
| `weekday` | string |  | Gregorian weekday. |
| `is_working_day` | boolean |  | False for the division's declared weekly baseline or applicable official holiday. |
| `day_type` | string |  | Regular weekday, official weekend or public holiday. |
| `weekend_days` | string_list |  | Division weekly-rest baseline. |
| `holiday_names` | string_list |  | Official events applying to the date. |
| `holiday_observed` | boolean |  | Always false here because no substitute date is inferred. |
| `rest_day_policy` | string |  | Employer roster and replacement-day policy are not inferred. |
| `substitute_day_policy` | string |  | Replacement dates are not inferred. |
| `calendar_scope` | string |  | Selected division's federal/state public holidays and weekly baseline. |
| `calendar_profile` | string |  | malaysia-bkpp-public-holidays. |
| `dataset_version` | string |  | Pinned BKPP/JPM 2027 package. |
| `sources` | list |  | Official government and legislative sources. |

## Formula

`for each included date: working_days += selected status.is_working_day`

Normalize endpoints, apply endpoint flags, and count the official division calendar over its weekly baseline.

## Data Sources

- BKPP JPM Hari Kelepasan Am — https://www.kabinet.gov.my/hari-kelepasan-am/ (federal_government_official_schedule, published 2026-08-20)
- BKPP JPM 2027 schedule notice — https://www.kabinet.gov.my/3689-2/ (federal_government_notice, published 2026-08-20)
- Malaysia.gov.my public holidays — https://www.malaysia.gov.my/my/government/public-holidays--school-holidays/cuti-umum (government_portal)
- Holidays Act 1951 (Act 369) — https://www.kabinet.gov.my/storage/2024/11/1951_12_31_akta369.pdf (legislation)
- Holidays Ordinance (Sabah Cap. 56) — https://www.kabinet.gov.my/akta-dan-warta/ (state_legislation_index)
- Public Holidays Ordinance (Sarawak Cap. 8) — https://www.kabinet.gov.my/akta-dan-warta/ (state_legislation_index)

Data freshness: `static`. BKPP publishes the next federal/state schedule after official review; refresh only after the official page changes.

## API

- `GET https://tttkmbb.com/api/v1/calculate/malaysia-working-days-between?start_date=…&end_date=…&division=…`
- `POST https://tttkmbb.com/api/v1/calculate/malaysia-working-days-between` with JSON body `{"inputs": {…}}`
- Response: unified envelope (`success`, `request`, `result.values`, `result.units`, `sources`, `freshness`, `timestamp`, `next_actions`, `links`); see https://tttkmbb.com/docs/response-format.md
- Schema: https://tttkmbb.com/api/v1/calculators/malaysia-working-days-between · OpenAPI operationId `count_my_working_days` in https://tttkmbb.com/openapi.json
- Authentication: none. Rate limit: fair use, see https://tttkmbb.com/docs/rate-limits.md.

## MCP

- Server: `https://tttkmbb.com/mcp` (Streamable HTTP, JSON-RPC 2.0, no auth)
- Tool: `count_my_working_days` (dedicated) or `run_calculator` with `{"calculator_id": "malaysia-working-days-between", "inputs": {…}}`

## Example

- Kuala Lumpur February: inputs `{"start_date":"2027-02-01","end_date":"2027-02-15","division":"KUL","include_start_date":true,"include_end_date":true}` → `{"working_days":10}`

```
GET https://tttkmbb.com/api/v1/calculate/malaysia-working-days-between?start_date=2027-02-01&end_date=2027-02-15&division=KUL&include_start_date=true&include_end_date=true
```

## Limitations

The division is unknown or employer/sector replacement-day rules matter. Normalize endpoints, apply endpoint flags, and count the official division calendar over its weekly baseline. All values are computed from the formula above; no measurement or live data is involved.

## FAQ

**Does this count a private employee's rest day?**

No. It reports only the declared division baseline and official public-holiday table.

## Related

- [Malaysia Division Public-Holiday Working Day](https://tttkmbb.com/everyday/malaysia-working-day.md) — Inspect a date and source basis.
