Menu

Three more countries, three more payslips: what building calculators for the Philippines, Sri Lanka and Nepal taught me
📰

Three more countries, three more payslips: what building calculators for the Philippines, Sri Lanka and Nepal taught me

DEV Community: webdev·Zahid Ghaffar·8 days ago
#2rogJS4Z
#devtowebdev#devto#dev#calculator#month
Reading 0:00
15s threshold

I started RozKaTool as a small set of free tools for Pakistan — a bijli bill calculator, a salary tax calculator, a few PDF tools. It now has 61 tools, and the most interesting thing that happened along the way is that people from other countries started using it. So I kept going across Asia. This week I added three more calculators, each one built around a law I had to read properly before writing a single line of code.

1. Philippines: 13th month pay

Every rank-and-file private-sector employee in the Philippines who worked at least one month in the year is entitled to 13th month pay under Presidential Decree No. 851. The formula looks simple — total basic salary earned during the year divided by 12 — but the divisor is always 12, never the number of months you worked. That is what makes it pro-rated automatically: six months of service earns half a month's basic pay.

The traps are in the details. Basic salary excludes overtime, allowances, holiday premium and COLA.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.