Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Mooyi07/Consumption-Calculator

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
28 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

⚡ Consumption Calculator by Mooyi

🧾 Overview

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.

✨ Features

  • 📱 Responsive design for desktop and mobile
  • ⚙️ Real-time bill calculation
  • 🧮 Breakdown of charges (distribution, supply, metering, taxes, subsidies)
  • 🧑‍💻 User-friendly interface

🛠️ Technologies Used

  • 🧱 HTML – Structure and layout
  • 🎨 CSS – Styling and responsive design
  • 📟 JavaScript – Dynamic calculations and interactions
  • 🔧 jQuery – Simplifies DOM manipulation

📁 File Structure

│── 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

🚀 Installation & Usage

🧬 Step 1: Clone the Repository

git clone https://github.com/Mooyi07/Consumption-Calculator.git
cd consumption-calculator

🌐 Step 2: Open in Browser

Simply open index.html in a browser to start using the calculator.

🔍 How It Works

  1. 🖊️ Enter the KWH value in the input field
  2. 🔄 The system automatically updates all charges based on predefined rates
  3. 💸 The total bill is displayed at the bottom

⚙️ Customization

To modify rates, edit the formula.js file:

const charges = {
    distCharge: 0.2748,
    suppCharge: 0.4140,
    meterCharge: 0.3460,
    // Update rates as needed
};

📜 License

This project is open-source under the MIT License.

👤 Author

Developed by Mooyi. Contributions are welcome!

About

A user-friendly electricity consumption calculator built with HTML, CSS, and JavaScript. Designed to help users in Negros track and analyze their electric bills, including breakdowns of NEPCRC charges, subsidies, VAT, and other fees.

Topics

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.