The Consumption Calculator is a web application designed to calculate electricity bills based on kilowatt-hour (KWH) consumption. It dynamically updates bill charges based on user input and displays detailed breakdowns of costs, including supplier-related charges, government charges, and subsidies.
- 📱 Responsive design for desktop and mobile
- ⚙️ Real-time bill calculation
- 🧮 Breakdown of charges (distribution, supply, metering, taxes, subsidies)
- 🧑💻 User-friendly interface
- 🧱 HTML – Structure and layout
- 🎨 CSS – Styling and responsive design
- 📟 JavaScript – Dynamic calculations and interactions
- 🔧 jQuery – Simplifies DOM manipulation
│── index.html # Main HTML file
│── styles.css # Stylesheet for UI design
│── formula.js # JavaScript file for calculations
│── jquery-3.7.1.min.js # jQuery library
git clone https://github.com/Mooyi07/Consumption-Calculator.git
cd consumption-calculator
Simply open index.html
in a browser to start using the calculator.
- 🖊️ Enter the KWH value in the input field
- 🔄 The system automatically updates all charges based on predefined rates
- 💸 The total bill is displayed at the bottom
To modify rates, edit the formula.js
file:
const charges = {
distCharge: 0.2748,
suppCharge: 0.4140,
meterCharge: 0.3460,
// Update rates as needed
};
This project is open-source under the MIT License.
Developed by Mooyi. Contributions are welcome!