Personal project · Tamil Nadu, India · since Jun 2026
The problem
Tamil Nadu households are billed every two months on a slab tariff: the first units are free, and each slab after that costs more per unit. The free allowance also depends on the total. Up to 500 units you get 200 free, but above 500 you get only 100. So 500 units cost ₹1,570 and 501 units cost ₹2,048. That makes a bill hard to predict, and hard to read backwards: if the bill says ₹1,500, how many units was that?
Solution
A web calculator in English and Tamil with two tools:
- Units → ₹: enter the units used and see the bill, slab by slab.
- ₹ → Units: enter a bill amount and see roughly how many units it covers, or step the units and watch the bill change.
Units → ₹ calculator
- An on-screen number keypad, as well as typing. Keyboard digits still work while a keypad button has focus.
- A slab breakdown: units in each slab, its rate, the amount, and the total payable.
- On phones, a "View breakdown" link scrolls to the breakdown and flashes it after each new calculation.

Units → ₹ on a phone, with the slab breakdown
₹ → Units converter
- Enter a bill in rupees to get the closest unit count, with the same slab breakdown. Or enter units to get the bill.
- A reference table of bills every 10 units, up to 1,000 units.
- Values carry over between the two tools and survive a page reload.

₹1,500 is about 489 units
English and Tamil