A package to calculate electricity bills by TNB
Project description
tnb_bill
A Python package to calculate TNB electricity bills based on usage, with support for KWTBB and SST.
How to install in Google Colab
!pip install tnb_bill
Example of usage
from tnb_bill import calculate_electricity_bill
total_usage_kwh = 1400
days = 30
bill_amount, sst, kwtbb, total_bill = calculate_electricity_bill(total_usage_kwh, days)
print(f"Bill Amount : RM {bill_amount:.2f}")
print(f"SST : {sst:.2f}")
print(f"KWTBB : {kwtbb:.2f}")
print(f"Total Electricity Bill (including 6% SST) for {total_usage_kwh} kWh is: RM {total_bill:.2f}")
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
tnb_bill-0.2.tar.gz
(2.0 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file tnb_bill-0.2.tar.gz.
File metadata
- Download URL: tnb_bill-0.2.tar.gz
- Upload date:
- Size: 2.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
10f6a43170fe420d4820036cca1a399e65374770251e4050d3cac55a2077afe1
|
|
| MD5 |
84744775ce04f6b9e94273d9ab333337
|
|
| BLAKE2b-256 |
d79afaa3fd7d990b333bb337c7d3e386f7e1fb5058fb08ee2dc21a724de64d81
|
File details
Details for the file tnb_bill-0.2-py3-none-any.whl.
File metadata
- Download URL: tnb_bill-0.2-py3-none-any.whl
- Upload date:
- Size: 2.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ef77b352e80d9ba8cf823acef81a7904506e71fc1dfd999dff4d9d139a8fa3ab
|
|
| MD5 |
1114cb68668e3a29d80766817e4ace34
|
|
| BLAKE2b-256 |
6552045cb0aae5d111649bf97ad0a97c35af8416c980d97515eb150134f70be0
|