function calculateRegularRate() {
var baseRate = parseFloat(document.getElementById('baseHourlyRate').value);
var hours = parseFloat(document.getElementById('totalHoursWorked').value);
var incentives = parseFloat(document.getElementById('weeklyIncentives').value);
// Validation
if (isNaN(baseRate) || baseRate < 0) baseRate = 0;
if (isNaN(hours) || hours < 0) hours = 0;
if (isNaN(incentives) || incentives otThreshold) {
otHours = hours – otThreshold;
// The employee has already been paid the "straight time" for these OT hours in step 2.
// Therefore, they are owed the "half-time" premium based on the NEW regular rate.
otPremiumRate = regularRate * 0.5;
totalOTPremium = otHours * otPremiumRate;
}
// 5. Total Pay
var totalPay = totalStraightTimeComp + totalOTPremium;
// Formatting currency
var fmt = new Intl.NumberFormat('en-US', { style: 'currency', currency: 'USD' });
// Update DOM
document.getElementById('resBaseEarnings').innerText = fmt.format(baseEarnings);
document.getElementById('resIncentives').innerText = fmt.format(incentives);
document.getElementById('resTotalStraight').innerText = fmt.format(totalStraightTimeComp);
document.getElementById('resRegularRate').innerText = fmt.format(regularRate);
document.getElementById('resOTHours').innerText = otHours.toFixed(2);
if (hours > otThreshold) {
document.getElementById('resOTPremiumRate').innerText = fmt.format(otPremiumRate);
document.getElementById('resTotalOTPremium').innerText = fmt.format(totalOTPremium);
} else {
document.getElementById('resOTPremiumRate').innerText = "$0.00";
document.getElementById('resTotalOTPremium').innerText = "$0.00";
}
document.getElementById('resTotalPay').innerText = fmt.format(totalPay);
// Show results
document.getElementById('results').style.display = 'block';
}
How to Calculate Regular Rate of Pay for Overtime
Understanding how to calculate the Regular Rate of Pay is critical for both employers and employees to ensure compliance with the Fair Labor Standards Act (FLSA). Many people mistakenly believe that overtime is simply calculating 1.5 times the hourly base rate. However, when an employee receives additional compensation—such as nondiscretionary bonuses, commissions, or shift differentials—the overtime calculation changes.
The Golden Rule: Overtime must be calculated based on the "Regular Rate," which is the weighted average of all compensation earned during the workweek, divided by the total hours worked.
What is Included in the Regular Rate?
The "Regular Rate" is not just your hourly wage. Under the FLSA, it includes almost all remuneration for employment paid to, or on behalf of, the employee. This commonly includes:
Base Hourly Wages: The standard payment for hours worked.
Nondiscretionary Bonuses: Bonuses promised based on performance, attendance, or quality of work (e.g., a $100 weekly production bonus).
Commissions: Payments based on sales percentages.
Shift Differentials: Extra pay for working night shifts or weekends.
Retroactive Pay Increases: Adjustments made to past wages.
Items generally excluded from the regular rate include discretionary bonuses (where the employer retains full control over whether to pay and the amount), gifts, paid time off (vacation/sick leave), and expense reimbursements.
The Calculation Formula
The standard formula for calculating the Regular Rate of Pay when bonuses or other payments are involved is as follows:
Step 1: Calculate total straight-time earnings for all hours worked (Hourly Rate × Total Hours).
Step 3: Divide the total from Step 2 by the total hours worked in the week (including overtime hours). This gives you the Regular Rate.
Step 4: Calculate the Overtime Premium. Since the "straight time" for the overtime hours is already included in Step 1, you only owe the additional "half-time" premium on the overtime hours. (Regular Rate × 0.5 × Overtime Hours).
Step 5: Add the Overtime Premium to the Total Straight-Time Earnings.
Example Calculation
Let's look at a realistic scenario using the logic of the calculator above:
Base Rate: $20.00/hour
Hours Worked: 50 hours
Weekly Production Bonus: $100.00
The Math:
Base Wages: $20.00 × 50 hours = $1,000.00
Total Compensation: $1,000.00 + $100.00 (Bonus) = $1,100.00
If you had simply calculated overtime on the base rate ($20 × 1.5 = $30), the pay for overtime hours would be $300, and base pay for 40 hours would be $800, plus the bonus $100, totaling $1,200. The FLSA method results in $1,210.00, ensuring the employee is compensated for the bonus impact on their overtime rate.
Why This Matters
Failing to include bonuses and commissions in the Regular Rate calculation is one of the most common wage and hour violations. It results in underpayment of overtime premiums. Using a calculator like the one above ensures that the "weighted average" is correctly applied to determine the true value of an employee's time.