// Get the starting wage
const startingWage = document.getElementById('starting-wage').value;
// Get the FICA rate
const ficaRate = 0.0765;
// Get the FUTA rate
const futaRate = 0.06;
// Get the SUTA1 rate
const suta1Rate = 0.03;
// Get the general liability insurance rate
const generalLiabilityRate = document.getElementById('general-liability-rate').value;
// Get the worker's compensation rate
const workersCompensationRate = document.getElementById('workers-compensation-rate').value;
// Calculate the total hourly cost
const totalHourlyCost = (startingWage * (1 + ficaRate + futaRate + suta1Rate + (generalLiabilityRate / 1000) + (workersCompensationRate / 100))).toFixed(2);
// Calculate the total hourly burden
const totalHourlyBurden = (startingWage * (ficaRate + futaRate + suta1Rate + (generalLiabilityRate / 1000) + (workersCompensationRate / 100))).toFixed(2);
// Update the HTML with the calculated values
document.getElementById('total-hourly-cost').innerHTML = totalHourlyCost;
document.getElementById('total-hourly-burden').innerHTML = totalHourlyBurden;