Hourly Wage Calculator
About this app
Calculate employee wages easily based on hourly rates and worked hours with this fun and vibrant wage calculator app.
Hourly Wage Calculator Hourly Wage Calculator Hourly Rate ($): Hours Worked: Calculate Wage Total Wage: $0.00
Related apps
Put this on your site
Source
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>Hourly Wage Calculator</title>
<meta name="description" content="Calculate employee wages easily based on hourly rates and worked hours with this fun and vibrant wage calculator app.">
<meta name="keywords" content="hourly wage, wage calculator, employee, payroll, hours worked, calculator app">
<!-- Libraries -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js" crossorigin="anonymous"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" crossorigin="anonymous">
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.min.js" crossorigin="anonymous"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@6.6.0/css/fontawesome.min.css" crossorigin="anonymous">
<script type="text/javascript">
try {
// App Javascript Goes Here. Place your entire script content inside the try block for error handling.
// This will run when the DOM is ready.
document.addEventListener("DOMContentLoaded", function() {
const calculateButton = document.getElementById("calculate-wage");
const wageOutput = document.getElementById("wage-output");
const hoursInput = document.getElementById("hours-worked");
const hourlyRateInput = document.getElementById("hourly-rate");
// Set the listener for button
calculateButton.addEventListener("click", function() {
const hourlyRate = parseFloat(hourlyRateInput.value) || 0;
const hoursWorked = parseFloat(hoursInput.value) || 0;
const totalWage = hourlyRate * hoursWorked;
wageOutput.textContent = `Total Wage: $${totalWage.toFixed(2)}`;
});
});
} catch (error) {
// This will throw the error to the parent window.
throw error;
}
</script>
<style>
/* App CSS Goes Here */
body {
background: linear-gradient(135deg, #f8cdda, #1d2b64);
color: #fff;
font-family: Arial, sans-serif;
}
#main-container {
text-align: center;
margin-top: 50px;
padding: 30px;
border-radius: 10px;
background: rgba(255, 255, 255, 0.1);
}
.input-group {
margin-bottom: 20px;
}
#calculate-wage {
background-color: #ff6b6b;
border: none;
padding: 10px 20px;
border-radius: 5px;
color: #fff;
cursor: pointer;
transition: background-color 0.3s;
}
#calculate-wage:hover {
background-color: #ff4d4d;
}
#wage-output {
margin-top: 20px;
font-size: 24px;
font-weight: bold;
}
</style>
</head>
<body>
<div id="main-container" class="container">
<h1>Hourly Wage Calculator</h1>
<div class="input-group">
<label for="hourly-rate" class="form-label">Hourly Rate ($):</label>
<input type="number" id="hourly-rate" class="form-control" placeholder="Enter hourly rate">
</div>
<div class="input-group">
<label for="hours-worked" class="form-label">Hours Worked:</label>
<input type="number" id="hours-worked" class="form-control" placeholder="Enter hours worked">
</div>
<button id="calculate-wage" class="btn">Calculate Wage</button>
<div id="wage-output">Total Wage: $0.00</div>
</div>
</body>
</html>
NEW APPS
These are apps made by the community!