Shop Insurance Calculator
function calculateInsurancePremium(){
const shopValue = parseFloat(document.getElementById(“shopValue”).value);
const locationRisk = parseFloat(document.getElementById(“locationRisk”).value) / 100;
const employeeCount = parseInt(document.getElementById(“employeeCount”).value);
const coverageAmount = parseFloat(document.getElementById(“coverageAmount”).value);
const insuranceRate = parseFloat(document.getElementById(“insuranceRate”).value) / 100;
if (isNaN(shopValue) || isNaN(locationRisk) || isNaN(employeeCount) || isNaN(coverageAmount) || isNaN(insuranceRate) || shopValue <= 0 || coverageAmount el.value = “”);
document.getElementById(“insurancePremium”).value = “”;
}