A JavaScript-powered web application that helps users calculate and visualize the total cost of subscriptions over 1-12 months. Plan ahead and make informed decisions about your recurring expenses.
Live App: catyoung018.github.io/subscription-calculator
The Subscription Calculator is a practical financial planning tool that helps users understand the long-term cost of their recurring subscriptions. By entering a monthly subscription cost and selecting a time period (1-12 months), users can instantly see the total amount they'll spend.
- Monthly Cost Input: Enter any subscription amount
- Flexible Time Periods: Calculate costs from 1 to 12 months
- Instant Calculation: Real-time cost projections
- Clean Interface: Simple, intuitive design
- Responsive Layout: Works on all devices
- Financial Planning: Make informed subscription decisions
- JavaScript: Core calculation logic and DOM manipulation
- HTML5: Semantic structure
- CSS3: Responsive styling and layout
- GitHub Pages: Deployment and hosting
This project demonstrates:
- Form input handling and validation
- Mathematical calculations in JavaScript
- DOM manipulation for dynamic updates
- Event listeners for user interactions
- Responsive web design principles
- Input/output functionality
- User experience design
Visit the live calculator: catyoung018.github.io/subscription-calculator
-
Clone the repository:
git clone https://github.com/CatYoung018/subscription-calculator.git cd subscription-calculator -
Open in browser:
- Simply open
index.htmlin your web browser - Or use a local server:
# Python 3 python -m http.server 8000 # Node.js (with http-server) npx http-server
- Simply open
-
View the app:
- Navigate to
http://localhost:8000
- Navigate to
subscription-calculator/
โโโ css/
โ โโโ style.css # Stylesheet
โโโ js/
โ โโโ script.js # Calculator logic
โโโ img/ # Images and assets
โโโ index.html # Main HTML file
โโโ package.json # Project configuration
โโโ README.md # Documentation
- Enter Subscription Cost: Input your monthly subscription amount (e.g., $9.99)
- Select Time Period: Choose how many months to calculate (1-12 months)
- Click Calculate: See the total cost instantly
- Plan Ahead: Use the results to budget and make decisions
- Budgeting: Calculate yearly costs for Netflix, Spotify, gym memberships
- Comparison Shopping: Compare annual costs of different subscription tiers
- Financial Planning: Understand the true cost of multiple subscriptions
- Decision Making: Evaluate if a subscription is worth the long-term cost
// Getting user input
const monthlyCost = document.getElementById('cost').value;
const months = document.getElementById('months').value;// Calculate total cost
const totalCost = monthlyCost * months;// Display results
document.getElementById('result').textContent = `$${totalCost.toFixed(2)}`;// Listen for button clicks
calculateBtn.addEventListener('click', calculateTotal);- Add multiple subscription tracking
- Include annual/weekly subscription options
- Save subscription history
- Add comparison charts/graphs
- Include currency conversion
- Export calculations to PDF/CSV
- Add subscription reminder notifications
- Calculate savings from cancellations
This project was created as part of a Skillcrush coding bootcamp, focusing on practical JavaScript applications and real-world problem-solving.
This project is open source and available for educational purposes.
Cat Young
Email: cat@catyoungconsulting.com
Portfolio: catyoung018.github.io/Cat-Young-Dev
GitHub: @CatYoung018
โญ If you found this project helpful, please consider giving it a star!