Calculate OT Pay: Your Essential Overtime Pay Calculator
Determine your overtime earnings accurately and easily.
Your standard hourly wage before any overtime.
The standard number of hours you work in a week.
The number of hours worked beyond your regular hours.
1.5x (Time and a Half)
2x (Double Time)
Other
Typically 1.5 or 2 times your regular rate.
Enter your specific overtime multiplier if not standard.
Your Overtime Pay Results
$0.00
Overtime Rate: $0.00
Regular Pay: $0.00
Overtime Pay: $0.00
Formula Used:
Overtime Rate = Regular Hourly Rate * Overtime Multiplier
Regular Pay = Regular Hourly Rate * Regular Hours Worked
Overtime Pay = Overtime Rate * Overtime Hours Worked
OT Pay Breakdown vs. Regular Pay
Overtime Pay Calculation Details
Item
Value
Regular Hourly Rate
—
Regular Hours Worked
—
Overtime Hours Worked
—
Overtime Multiplier
—
Calculated Overtime Rate
—
Calculated Regular Pay
—
Calculated Overtime Pay
—
Total Pay
—
What is Overtime Pay?
Overtime pay, often abbreviated as OT pay, is a fundamental concept in employment law and compensation. It refers to the additional wages an employee earns for working hours beyond their standard or regular working hours within a given pay period. The primary goal of overtime pay is to compensate employees fairly for the extra time and effort they dedicate to their job and, in many jurisdictions, to discourage employers from requiring excessive working hours. Understanding your OT pay is crucial for anyone who works, as it directly impacts your total earnings and financial planning. This calculator helps demystify the process of calculating overtime pay.
Who Should Use an OT Pay Calculator?
Anyone who works and is eligible for overtime pay should use an OT pay calculator. This includes:
Hourly employees who regularly work beyond 40 hours per week.
Employees in industries where overtime is common, such as manufacturing, healthcare, retail, hospitality, and emergency services.
Freelancers or contract workers who might negotiate overtime rates for extended project work.
HR professionals and payroll administrators verifying overtime calculations.
Employees seeking to understand potential earnings before agreeing to work extra shifts.
Common Misconceptions about Overtime Pay
Several common misunderstandings surround overtime pay:
"All employees are entitled to overtime.": In many countries, certain salaried employees, executives, administrative, and professional staff are exempt from overtime pay regulations, even if they work long hours. Eligibility often depends on job duties, salary level, and specific legal definitions.
"Overtime is always time and a half.": While 1.5 times the regular rate (time and a half) is common, overtime multipliers can vary based on company policy, union agreements, or specific laws (e.g., double time on Sundays or holidays).
"Overtime applies to all hours worked over 8 hours per day.": While some jurisdictions mandate daily overtime, many countries, like the US under the Fair Labor Standards Act (FLSA), primarily focus on weekly overtime (over 40 hours).
"Overtime pay is calculated on your gross salary.": Overtime pay is typically calculated based on your regular hourly rate, not your total annual salary if you are a salaried non-exempt employee.
Calculating overtime pay involves a few straightforward steps, primarily focusing on determining the correct overtime rate and then applying it to the hours worked beyond the standard threshold. The core components are your regular hourly rate, the number of regular hours, the number of overtime hours, and the overtime multiplier dictated by law or agreement.
Step-by-Step Derivation:
Determine the Regular Hourly Rate: If you are paid a salary, you may need to calculate your effective hourly rate by dividing your salary by the number of regular hours you are expected to work in a pay period. For hourly employees, this is usually your stated hourly wage.
Identify Overtime Hours: This is the number of hours worked in excess of the standard workweek (commonly 40 hours in the US).
Determine the Overtime Multiplier: This factor dictates how much extra you earn per overtime hour. Common multipliers include 1.5 (time and a half) or 2 (double time). This is often set by federal, state, or local laws, or by a collective bargaining agreement.
Calculate the Overtime Rate: Multiply your Regular Hourly Rate by the Overtime Multiplier.
Calculate Regular Pay: Multiply your Regular Hourly Rate by the number of Regular Hours Worked.
Calculate Overtime Pay: Multiply the calculated Overtime Rate by the number of Overtime Hours Worked.
Calculate Total Pay: Sum your Regular Pay and Overtime Pay.
Variable Explanations:
Regular Hourly Rate: The base wage an employee earns per hour for their standard working hours.
Regular Hours Worked: The number of hours an employee works within the standard workweek (e.g., up to 40 hours).
Overtime Hours Worked: The number of hours an employee works beyond the standard workweek threshold.
Overtime Multiplier: A factor applied to the regular hourly rate to determine the overtime rate (e.g., 1.5 for time and a half, 2 for double time).
Overtime Rate: The hourly wage earned for each hour of overtime worked.
Regular Pay: The total earnings from standard working hours.
Overtime Pay: The total earnings specifically from overtime hours worked.
Total Pay: The sum of Regular Pay and Overtime Pay for the given period.
Let's look at a couple of scenarios to illustrate how overtime pay works in practice.
Example 1: Standard Time and a Half
Scenario: Sarah works as a project coordinator. Her regular hourly rate is $25.00 per hour, and her standard workweek is 40 hours. In a particular week, she worked 48 hours, including 8 hours of overtime. Her employer pays overtime at 1.5 times the regular rate.
Inputs:
Regular Hourly Rate: $25.00
Regular Hours Worked: 40
Overtime Hours Worked: 8
Overtime Multiplier: 1.5
Calculations:
Overtime Rate = $25.00 * 1.5 = $37.50 per hour
Regular Pay = $25.00 * 40 = $1000.00
Overtime Pay = $37.50 * 8 = $300.00
Total Pay = $1000.00 + $300.00 = $1300.00
Financial Interpretation: Sarah earned an additional $300.00 due to her overtime hours, making her total gross pay for the week $1300.00. This extra compensation reflects the higher value placed on her time outside of standard working hours.
Example 2: Double Time on a Holiday
Scenario: Mark is a retail associate. His regular rate is $20.00 per hour for a 40-hour week. During a holiday week, he worked his standard 40 hours plus an additional 6 hours on the holiday itself. Company policy dictates double time (2x) for all hours worked on a recognized holiday.
Note: In this specific scenario, we assume the 6 holiday hours are *in addition* to the standard 40 hours, for a total of 46 hours. If the holiday fell within the 40, the calculation might differ based on specific policies (e.g., getting paid holiday pay plus regular rate for those hours). For simplicity, we'll calculate as 40 regular + 6 holiday overtime.
Inputs:
Regular Hourly Rate: $20.00
Regular Hours Worked: 40
Overtime Hours Worked (Holiday): 6
Overtime Multiplier: 2.0
Calculations:
Overtime Rate = $20.00 * 2.0 = $40.00 per hour
Regular Pay = $20.00 * 40 = $800.00
Overtime Pay (Holiday) = $40.00 * 6 = $240.00
Total Pay = $800.00 + $240.00 = $1040.00
Financial Interpretation: Mark received a higher rate for his holiday work, earning an extra $240.00. This higher compensation is typical for working during peak times or holidays, reflecting the inconvenience and demand.
Our Overtime Pay Calculator is designed for simplicity and accuracy. Follow these steps to get your overtime pay calculation:
Step-by-Step Instructions:
Enter Your Regular Hourly Rate: Input the amount you normally earn per hour. Ensure this is your base rate before any overtime is applied.
Input Regular Hours Worked: Enter the number of hours you typically work in a standard week (commonly 40 hours).
Specify Overtime Hours Worked: Enter the total number of hours you worked *beyond* your regular hours in the week.
Select Overtime Multiplier: Choose the applicable multiplier from the dropdown. This is usually 1.5 (time and a half) or 2 (double time). If your multiplier is different, select 'Other' and enter the precise decimal value in the field that appears.
Click "Calculate OT Pay": Once all fields are populated, click the button. The calculator will instantly display your results.
Review Your Results: Check the main highlighted result for your total overtime pay earned. You'll also see your calculated overtime rate, regular pay, and the overtime pay itself.
Use the Table and Chart: The table provides a detailed breakdown of all input values and calculated results. The chart visually compares your regular pay to your overtime pay.
Copy Results: Use the "Copy Results" button to easily transfer your calculation details to a document or message.
Reset: If you need to start over or make significant changes, click the "Reset" button to return all fields to sensible default values.
How to Read Results:
Main Highlighted Result: This is your total Overtime Pay for the period (typically weekly).
Overtime Rate: The amount you earn per hour for your overtime hours.
Regular Pay: Your total earnings for the standard hours worked.
Overtime Pay: Your total earnings specifically for the hours worked beyond the regular threshold.
Calculation Table: Confirms your inputs and shows the calculated values for each component of your pay.
Chart: Provides a visual comparison, helping you quickly see the proportion of your earnings that came from overtime.
Decision-Making Guidance:
Understanding your OT pay can influence several decisions:
Working Extra Hours: Knowing your OT rate can help you decide if working additional hours is financially worthwhile, considering potential fatigue or impact on personal time.
Negotiating Pay: If you are in a role where overtime is expected, understanding these calculations can be valuable during salary negotiations.
Budgeting: Accurate OT pay estimates allow for more precise personal budgeting and financial planning.
Verifying Pay Stubs: You can use this calculator to double-check the accuracy of your employer's overtime calculations on your pay stub.
For more detailed insights into your overall compensation, explore our Salary Comparison Tools.
Key Factors That Affect Overtime Pay Results
Several elements can significantly influence the amount of overtime pay an individual receives. Understanding these factors is key to accurately estimating your earnings and navigating employment terms.
Regulatory Laws (FLSA & State Laws):
In the United States, the Fair Labor Standards Act (FLSA) sets the federal standard for overtime pay (time and a half for hours over 40 in a workweek) for non-exempt employees. However, some states have stricter laws, potentially mandating daily overtime or higher multipliers. Always be aware of the specific regulations applicable to your location.
Company Policy & Union Agreements:
Beyond legal requirements, employers or union contracts can establish more favorable overtime terms. This might include higher multipliers (e.g., double time), lower thresholds for overtime eligibility (e.g., over 37.5 hours), or different rules for weekend/holiday work. These agreements form a critical part of your employment contract.
Job Classification (Exempt vs. Non-Exempt):
Overtime pay typically only applies to non-exempt employees. Exempt employees, often salaried professionals, administrative staff, or executives who meet specific duty and salary tests, are not legally entitled to overtime pay, regardless of how many hours they work. Misclassifying an employee can have significant legal and financial consequences.
Definition of a "Workweek":
The FLSA defines a workweek as a fixed and regularly recurring period of 168 hours – seven consecutive 24-hour periods. The start day and time of the workweek can be set by the employer and may not coincide with the calendar week. How your employer defines the workweek is crucial for calculating overtime eligibility.
Calculation Basis (Hourly vs. Salary):
For hourly employees, the calculation is straightforward based on their hourly rate. For salaried non-exempt employees, their regular hourly rate must first be calculated by dividing their salary by the number of hours the salary is intended to compensate (typically 40 hours per week). This derived rate is then used for overtime calculations.
Bonuses, Commissions, and Shift Differentials:
Some forms of compensation must be included when calculating the regular rate of pay for overtime purposes. For instance, non-discretionary bonuses generally count towards the regular rate. However, specific rules apply, and it's essential to consult wage and hour laws or payroll experts. Shift differentials for working undesirable hours might be excluded depending on the specific laws and how they are structured.
Taxes and Deductions:
While this calculator focuses on gross overtime pay, remember that your net pay will be lower after taxes (federal, state, local) and other deductions (health insurance, retirement contributions, etc.) are taken out. Overtime earnings can sometimes push you into a higher tax bracket, impacting the effective rate.
Inflation and Cost of Living:
While not directly part of the OT calculation formula, inflation and the cost of living in your area affect the *real value* of your overtime pay. A $30 overtime premium might be highly significant in a low-cost area but less impactful in an expensive metropolitan region. Understanding this helps in assessing the true benefit of overtime.
Frequently Asked Questions (FAQ)
What is the standard overtime pay rate?
The most common standard overtime rate in the United States, as mandated by the FLSA for non-exempt employees, is 1.5 times (time and a half) the regular hourly rate for all hours worked over 40 in a workweek. However, some states or union contracts may mandate different rates, such as double time (2x) for certain hours.
Am I eligible for overtime pay?
Eligibility for overtime pay typically depends on your employment classification (exempt vs. non-exempt) and the laws of your jurisdiction. Non-exempt employees are generally eligible, while certain executive, administrative, and professional employees may be exempt. Consult your HR department or local labor laws to confirm your status.
How is overtime calculated for salaried employees?
Salaried employees who are classified as "non-exempt" are eligible for overtime. To calculate their overtime pay, their regular hourly rate must first be determined. This is typically done by dividing their weekly salary by the number of hours the salary is intended to cover (usually 40 hours). This calculated hourly rate is then used with the appropriate overtime multiplier (e.g., 1.5x).
Does overtime apply to hours worked on weekends or holidays?
Federal law (FLSA) primarily focuses on hours worked over 40 in a workweek for overtime. However, many states, company policies, or union agreements mandate premium pay (which could be overtime rate or a specific holiday rate) for work performed on weekends or designated holidays. Always check your specific employment agreement and local laws.
What if my employer doesn't pay overtime correctly?
If you believe your employer is not paying overtime correctly, you should first review your pay stubs carefully and consult your employment contract or employee handbook. If discrepancies persist, consider discussing it with your HR department or supervisor. If the issue isn't resolved, you can file a wage complaint with the U.S. Department of Labor's Wage and Hour Division or your state's labor department.
Does overtime pay affect my taxes?
Yes, overtime pay is considered taxable income and is subject to federal, state, and local income taxes, as well as Social Security and Medicare taxes. Because overtime is often paid at a higher rate, it can sometimes result in a larger tax deduction from each overtime paycheck compared to regular paychecks, depending on how withholding is calculated.
Can overtime be calculated based on daily hours instead of weekly?
While the federal standard in the US is weekly overtime (over 40 hours), some states, like California, have daily overtime rules. In these jurisdictions, non-exempt employees may be entitled to overtime pay for hours worked beyond a certain number per day (e.g., 8 hours), in addition to or instead of weekly overtime.
Is there a limit to how much overtime an employer can require?
Federal law generally does not limit the number of hours adults (16 years or older) can be required to work in a week. However, some state laws may impose restrictions, and union contracts often specify limits or require employee consent for overtime. Employers must still adhere to safety regulations where applicable.
Related Tools and Internal Resources
Gross Pay CalculatorCalculate your total earnings before deductions. Essential for understanding your full compensation picture.
Net Pay CalculatorEstimate your take-home pay after taxes and deductions are applied. Crucial for budgeting.
Hourly Wage CalculatorConvert annual salaries or bi-weekly paychecks into an hourly rate. Useful for comparing job offers.
Tax Withholding CalculatorAdjust your W-4 form to ensure the correct amount of tax is withheld from your pay.
Deductions ExplainedUnderstand common payroll deductions like 401(k), health insurance premiums, and garnishments.
Understanding Pay StubsA guide to deciphering the various components of your payslip, including OT pay and deductions.
var hourlyRateInput = document.getElementById('hourlyRate');
var regularHoursInput = document.getElementById('regularHours');
var overtimeHoursInput = document.getElementById('overtimeHours');
var otMultiplierSelect = document.getElementById('otMultiplier');
var customMultiplierGroup = document.getElementById('customMultiplierGroup');
var customMultiplierInput = document.getElementById('customMultiplierValue');
var hourlyRateError = document.getElementById('hourlyRateError');
var regularHoursError = document.getElementById('regularHoursError');
var overtimeHoursError = document.getElementById('overtimeHoursError');
var otMultiplierError = document.getElementById('otMultiplierError');
var customMultiplierValueError = document.getElementById('customMultiplierValueError');
var resultsContainer = document.getElementById('results-container');
var mainResultDisplay = document.getElementById('main-result');
var overtimeRateDisplay = document.getElementById('overtimeRateDisplay');
var regularPayDisplay = document.getElementById('regularPayDisplay');
var overtimePayDisplay = document.getElementById('overtimePayDisplay');
var tableRate = document.getElementById('tableRate');
var tableRegHours = document.getElementById('tableRegHours');
var tableOTHours = document.getElementById('tableOTHours');
var tableOTMultiplier = document.getElementById('tableOTMultiplier');
var tableOTRate = document.getElementById('tableOTRate');
var tableRegPay = document.getElementById('tableRegPay');
var tableOTPay = document.getElementById('tableOTPay');
var tableTotalPay = document.getElementById('tableTotalPay');
var chart;
var chartContext = document.getElementById('otPayChart').getContext('2d');
function formatCurrency(amount) {
return '$' + amount.toFixed(2);
}
function formatHours(hours) {
return hours.toFixed(2) + ' hrs';
}
function formatMultiplier(multiplier) {
return multiplier.toFixed(2) + 'x';
}
function updateChart(regularPay, overtimePay) {
if (chart) {
chart.destroy();
}
if (regularPay === null || overtimePay === null) return;
chart = new Chart(chartContext, {
type: 'bar',
data: {
labels: ['Regular Pay', 'Overtime Pay'],
datasets: [{
label: 'Earnings ($)',
data: [regularPay, overtimePay],
backgroundColor: [
'rgba(0, 74, 153, 0.6)', // Primary color for Regular Pay
'rgba(40, 167, 69, 0.6)' // Success color for Overtime Pay
],
borderColor: [
'rgba(0, 74, 153, 1)',
'rgba(40, 167, 69, 1)'
],
borderWidth: 1
}]
},
options: {
responsive: true,
maintainAspectRatio: true,
scales: {
y: {
beginAtZero: true,
title: {
display: true,
text: 'Amount ($)'
}
}
},
plugins: {
legend: {
display: false
},
title: {
display: true,
text: 'Comparison of Regular vs. Overtime Earnings'
}
}
}
});
}
function updateTable(rate, regHours, otHours, otMultiplier, otRate, regPay, otPay, totalPay) {
tableRate.textContent = formatCurrency(rate);
tableRegHours.textContent = formatHours(regHours);
tableOTHours.textContent = formatHours(otHours);
tableOTMultiplier.textContent = formatMultiplier(otMultiplier);
tableOTRate.textContent = formatCurrency(otRate);
tableRegPay.textContent = formatCurrency(regPay);
tableOTPay.textContent = formatCurrency(otPay);
tableTotalPay.innerHTML = '' + formatCurrency(totalPay) + '';
}
function calculateOvertimePay() {
var hourlyRate = parseFloat(hourlyRateInput.value);
var regularHours = parseFloat(regularHoursInput.value);
var overtimeHours = parseFloat(overtimeHoursInput.value);
var selectedMultiplier = otMultiplierSelect.value;
var customMultiplier = parseFloat(customMultiplierInput.value);
var otMultiplier;
// Clear previous errors
hourlyRateError.style.display = 'none';
regularHoursError.style.display = 'none';
overtimeHoursError.style.display = 'none';
otMultiplierError.style.display = 'none';
customMultiplierValueError.style.display = 'none';
var isValid = true;
// Input validation
if (isNaN(hourlyRate) || hourlyRate <= 0) {
hourlyRateError.textContent = 'Please enter a valid positive hourly rate.';
hourlyRateError.style.display = 'block';
isValid = false;
}
if (isNaN(regularHours) || regularHours < 0) {
regularHoursError.textContent = 'Please enter a valid number of regular hours (0 or more).';
regularHoursError.style.display = 'block';
isValid = false;
}
if (isNaN(overtimeHours) || overtimeHours < 0) {
overtimeHoursError.textContent = 'Please enter a valid number of overtime hours (0 or more).';
overtimeHoursError.style.display = 'block';
isValid = false;
}
if (selectedMultiplier === 'other') {
otMultiplier = customMultiplier;
if (isNaN(otMultiplier) || otMultiplier <= 0) {
customMultiplierValueError.textContent = 'Please enter a valid positive custom multiplier.';
customMultiplierValueError.style.display = 'block';
isValid = false;
}
} else {
otMultiplier = parseFloat(selectedMultiplier);
}
if (!isValid) {
resultsContainer.style.display = 'none';
document.getElementById('chart-container').style.display = 'none';
return;
}
// Calculations
var overtimeRate = hourlyRate * otMultiplier;
var regularPay = hourlyRate * regularHours;
var overtimePay = overtimeRate * overtimeHours;
var totalPay = regularPay + overtimePay;
// Display Results
mainResultDisplay.textContent = formatCurrency(overtimePay); // Primary result is Overtime Pay
overtimeRateDisplay.innerHTML = 'Overtime Rate: ' + formatCurrency(overtimeRate) + '';
regularPayDisplay.innerHTML = 'Regular Pay: ' + formatCurrency(regularPay) + '';
overtimePayDisplay.innerHTML = 'Overtime Pay: ' + formatCurrency(overtimePay) + '';
resultsContainer.style.display = 'block';
// Update Table
updateTable(hourlyRate, regularHours, overtimeHours, otMultiplier, overtimeRate, regularPay, overtimePay, totalPay);
// Update Chart
document.getElementById('chart-container').style.display = 'block';
updateChart(regularPay, overtimePay);
}
function copyResults() {
var otPay = mainResultDisplay.textContent;
var otRate = overtimeRateDisplay.textContent.replace('Overtime Rate: ', ");
var regPay = regularPayDisplay.textContent.replace('Regular Pay: ', ");
var otPayDetail = overtimePayDisplay.textContent.replace('Overtime Pay: ', ");
var assumptions = "Assumptions:\n";
assumptions += "- Regular Hourly Rate: " + tableRate.textContent + "\n";
assumptions += "- Regular Hours Worked: " + tableRegHours.textContent + "\n";
assumptions += "- Overtime Hours Worked: " + tableOTHours.textContent + "\n";
assumptions += "- Overtime Multiplier: " + tableOTMultiplier.textContent + "\n";
var resultText = "— Overtime Pay Calculation Results —\n\n";
resultText += "Total Overtime Pay Earned: " + otPay + "\n";
resultText += otRate + "\n";
resultText += regPay + "\n";
resultText += otPayDetail + "\n\n";
resultText += assumptions;
// Use a temporary textarea to copy to clipboard
var textArea = document.createElement("textarea");
textArea.value = resultText;
textArea.style.position = "fixed"; // Avoid scrolling to bottom
textArea.style.top = 0;
textArea.style.left = 0;
textArea.style.opacity = 0;
document.body.appendChild(textArea);
textArea.focus();
textArea.select();
try {
var successful = document.execCommand('copy');
var msg = successful ? 'Results copied successfully!' : 'Failed to copy results.';
console.log(msg); // Or show a temporary message to the user
} catch (err) {
console.log('Unable to copy results', err); // Or show error message
}
document.body.removeChild(textArea);
}
function resetCalculator() {
hourlyRateInput.value = '25.00';
regularHoursInput.value = '40';
overtimeHoursInput.value = '0';
otMultiplierSelect.value = '1.5';
customMultiplierGroup.style.display = 'none';
customMultiplierInput.value = ";
hourlyRateError.style.display = 'none';
regularHoursError.style.display = 'none';
overtimeHoursError.style.display = 'none';
otMultiplierError.style.display = 'none';
customMultiplierValueError.style.display = 'none';
resultsContainer.style.display = 'none';
document.getElementById('chart-container').style.display = 'none';
// Reset table to default placeholder values
tableRate.textContent = '–';
tableRegHours.textContent = '–';
tableOTHours.textContent = '–';
tableOTMultiplier.textContent = '–';
tableOTRate.textContent = '–';
tableRegPay.textContent = '–';
tableOTPay.textContent = '–';
tableTotalPay.innerHTML = '—';
// Clear chart if it exists
if (chart) {
chart.destroy();
chart = null;
}
}
// Event listener for multiplier change
otMultiplierSelect.addEventListener('change', function() {
if (this.value === 'other') {
customMultiplierGroup.style.display = 'flex'; // Use flex to match input-group display
} else {
customMultiplierGroup.style.display = 'none';
customMultiplierInput.value = "; // Clear custom value if not selected
}
});
// Initial setup on page load
document.addEventListener('DOMContentLoaded', function() {
resetCalculator(); // Load with default values
});
// Add event listeners for real-time updates
var inputs = document.querySelectorAll('.loan-calc-container input, .loan-calc-container select');
inputs.forEach(function(input) {
input.addEventListener('input', function() {
// Basic validation on input for immediate feedback
var id = this.id;
var value = parseFloat(this.value);
var errorElement = document.getElementById(id + 'Error');
var errorText = ";
var isValid = true;
if (id === 'hourlyRate' || id === 'customMultiplierValue') {
if (isNaN(value) || value <= 0) {
errorText = 'Please enter a valid positive number.';
isValid = false;
}
} else if (id === 'regularHours' || id === 'overtimeHours') {
if (isNaN(value) || value 0 && !isNaN(rh) && rh >= 0 && !isNaN(oh) && oh >= 0) {
if (multiplier === 'other' && (isNaN(customM) || customM <=0)) {
// Don't calculate if custom multiplier is invalid
} else {
calculateOvertimePay();
}
} else {
resultsContainer.style.display = 'none'; // Hide results if inputs are incomplete/invalid
document.getElementById('chart-container').style.display = 'none';
}
});
});
// FAQ toggle functionality
var faqQuestions = document.querySelectorAll('.faq-question');
faqQuestions.forEach(function(question) {
question.addEventListener('click', function() {
var faqItem = this.closest('.faq-item');
faqItem.classList.toggle('open');
});
});