The AQI-Lifespan Calculator estimates the impact of air pollution on human lifespan based on real-time Air Quality Index (AQI) data. Users input their age and location, and the system calculates the equivalent number of cigarettes smoked and the potential reduction in lifespan.
- Real-time AQI Data: Fetches live AQI data based on user location.
- Cigarette Equivalence Calculation: Converts AQI exposure into the number of cigarettes smoked per day.
- Lifespan Impact Estimation: Predicts potential lifespan reduction due to air pollution.
- User-Friendly Interface: Clean, modern UI with dynamic results.
- Health Recommendations: Provides tips for minimizing exposure to air pollution.
- Responsive Design: Fully functional on mobile and desktop devices.
- Frontend: HTML, CSS, JavaScript
- Backend: JavaScript (API calls)
- API: Openweather API (or other AQI sources)
- User Input: Enter age and location (city or coordinates).
- AQI Data Fetching: The system retrieves AQI data for the location.
- Impact Calculation: The AQI is converted into cigarette equivalence and estimated lifespan reduction.
- Results Display: Shows AQI details, health risks, and actionable insights.
- Clone this repository:
git clone https://github.com/tejazmali/AQI-Lifespan-Calculator.git
- Navigate to the project folder:
cd AQI-Lifespan-Calculator
- Open
index.html
in a web browser to run the project.
- Enter your age and location.
- Click the "Calculate" button.
- View results, including AQI details, cigarette equivalence, and lifespan impact.
- Geolocation Integration: Auto-detect the user's location.
- Historical Data: Show AQI trends over time.
- Improved Health Insights: Provide detailed health risk assessments.
Contributions are welcome! Fork the repository, make improvements, and submit a pull request.
Developed by Tejas Mali. For questions or suggestions, feel free to reach out! Contact info GIven in GIthub Profile Page