A comprehensive web-based calculator for GoMining rewards and investment planning, built with HTML, CSS, and JavaScript.
This project provides a simple yet powerful tool to calculate mining rewards and return on investment (ROI) for GoMining users. It features two main calculation modes:
- Rewards Calculator (index.html) - Calculate daily, monthly, or yearly mining rewards
- Investment Plan (investment_plan.html) - Simulate long-term investment strategies
🌐 Live: https://gomining-calculator.app/
- Real-time price integration via CoinGecko API for BTC and GMT prices
- Dual maintenance mode - Choose between BTC or GMT for fee payments
- Comprehensive calculations including:
- Gross mining rewards
- Electricity consumption costs
- Service fees
- Net profit in BTC and USD
- Investment cost analysis
- Investment planning with monthly TH purchases over customizable periods
- Responsive design optimized for desktop, tablet, and mobile devices
- Bitcoin halving countdown timer
- Quick copy functionality for donation addresses
- Automatic recalculation on input changes
- Professional UI/UX with modern design elements
![]() |
![]() |
|---|
GoMining-Calculator/
│
├── images/ # Assets and icons
│ ├── btc_icon.png
│ ├── gmt-con.png
│ ├── presentation.png
│ └── ...
├── index.html # Main rewards calculator page
├── investment_plan.html # Investment planning simulation
├── legal_notice.html # Legal information and privacy policy
├── style.css # Main stylesheet
├── responsive.css # Responsive design rules
├── main.js # Common JavaScript (prices, navigation, interactions)
├── calculator.js # Rewards calculation logic
├── investment_plan.js # Investment planning logic
└── README.md # This file
- A modern web browser (Chrome, Firefox, Safari, Edge)
- Internet connection (for real-time price data)
- Clone or download this repository
- Open
index.htmlin your web browser - No additional setup required - the application runs entirely in the browser
- Navigate to the main page (
index.html) - Enter your mining parameters:
- Bitcoin price (auto-filled from API)
- GMT price (auto-filled from API)
- TH power (mining hash rate)
- Electrical efficiency (W/TH)
- Discount percentage
- Choose maintenance mode (BTC or GMT)
- Select calculation period (daily/monthly/yearly)
- View real-time results
- Navigate to the investment plan page (
investment_plan.html) - Enter initial parameters plus:
- Monthly TH investment amount
- Investment duration (months)
- Review projected earnings and costs over the investment period
The application integrates with the CoinGecko API to provide real-time cryptocurrency prices:
- Bitcoin (BTC) price
- GMT Token price
- Automatic price updates
- Font Awesome - Icon library
- Google Fonts (Inter) - Typography
- CoinGecko API - Cryptocurrency price data
- Chrome 60+
- Firefox 55+
- Safari 12+
- Edge 79+
-
Clone the repository
-
Open files in your preferred code editor
-
Use a local server (optional but recommended):
# Using Python python -m http.server 8000 # Using Node.js npx serve .
- HTML: Semantic markup with accessibility considerations
- CSS: Modular styles with responsive design patterns
- JavaScript: Vanilla JS with modern ES6+ features
We welcome contributions! Please follow these guidelines:
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
- Follow existing code style and formatting
- Test changes across different browsers
- Update documentation for new features
- Ensure responsive design compatibility
Please review legal_notice.html for:
- Privacy policy
- Terms of use
- Intellectual property information
- Contact details
This project is open source and available under the MIT License.
For questions, issues, or feature requests:
- Create an issue on GitHub
- Check existing issues for solutions
- Review the legal notice for contact information
Built with ❤️ for the GoMining community

