Project Work Time (PWT) Helper

Monthly ratio → daily allocation · each working day = 1.00 · prefer 1, then 1-decimal splits, 2-decimals only if unavoidable · weekends / HK public holidays excluded.

1 · Projects & monthly ratio

Project Ratio (%) Target (days)
Must sum to 100% · target = ratio × working days
2 · Calendar overrides — … · HK holidays & your days off
Click a holiday chip's ✕ to treat that holiday as a working day instead. Any change re-runs the allocation.

Bundled calendar: Hong Kong general holidays (17 days/year, General Holidays Ordinance, Cap. 149) for 2024–2028 plus Saturdays/Sundays. For months outside 2024–2028 only weekends are excluded — add that year's holidays as days off above. Double-check against gov.hk before submitting.

3 · Suggested daily allocation

grey = non-working · WE weekend · PH public holiday · OFF your day off
Notes — editing, export & how the split is calculated

Rows are projects, columns are calendar days; grey WE/PH/OFF columns carry no allocation and are exported blank. Working-day cells are editable — type a new value and press Enter/Tab; daily totals and project totals re-check themselves (red = does not add up). Exported values use 2 decimals (e.g. 0.60). The suggestion gives each project as many full 1.00 days as possible, packs all remainders into the fewest split days, spreads those split days evenly across the month (full days fill the days in between), splits only on 0.1 boundaries, and uses a 2-decimal cell only for a project whose monthly target itself needs one.

Filling your PWT form (gvMonthWork): on the form, first add enough project rows and select each Project/CS/Others in the same top-to-bottom order as §1. Then click Copy form-fill script here, go to the form tab, open DevTools Console (F12 → Console), paste and press Enter (Chrome may first ask you to type allow pasting). The script writes txt_1…txt_N row by row, skips the disabled weekend/holiday fields, leaves the dropdowns untouched, and reports what it filled — check the row totals, then Save as usual. Copy day cells instead copies just the day values (1…last day of month, tab-separated, blank = none) for pasting into a spreadsheet grid.