Discrimination Lawsuit Settlement Calculator

Discrimination Lawsuit Settlement Calculator

This calculator provides an estimated range for discrimination lawsuit settlements. It considers factors like lost wages, emotional distress, and potential punitive damages. Remember, this is an estimation tool, and actual settlement amounts can vary significantly based on case specifics, jurisdiction, and negotiation outcomes.

function calculateSettlement() { var lostWages = parseFloat(document.getElementById("lostWages").value); var emotionalDistress = parseFloat(document.getElementById("emotionalDistress").value); var punitivePotential = parseFloat(document.getElementById("punitivePotential").value); var legalFeesPercentage = parseFloat(document.getElementById("legalFeesPercentage").value); var resultDiv = document.getElementById("result"); resultDiv.innerHTML = ""; // Clear previous results if (isNaN(lostWages) || isNaN(emotionalDistress) || isNaN(punitivePotential) || isNaN(legalFeesPercentage)) { resultDiv.innerHTML = "Please enter valid numbers for all fields."; return; } if (lostWages < 0 || emotionalDistress < 0 || punitivePotential 5 || legalFeesPercentage 100) { resultDiv.innerHTML = "Please ensure values are within reasonable ranges."; return; } // Base damages = lost wages + emotional distress var baseDamages = lostWages + emotionalDistress; // Punitive damages can be a multiple of base damages, influenced by punitive potential // A simplified model: punative damages could be up to 'punitivePotential' times the base damages. // We'll use a conservative approach for the lower bound and a higher for the upper. var minPunitiveDamages = baseDamages * 0.1 * (punitivePotential – 1); // Conservative lower end var maxPunitiveDamages = baseDamages * punitivePotential; var totalGrossSettlementLow = baseDamages + Math.max(0, minPunitiveDamages); var totalGrossSettlementHigh = baseDamages + maxPunitiveDamages; // Calculate legal fees var legalFeesLow = totalGrossSettlementLow * (legalFeesPercentage / 100); var legalFeesHigh = totalGrossSettlementHigh * (legalFeesPercentage / 100); // Net settlement after legal fees var netSettlementLow = totalGrossSettlementLow – legalFeesLow; var netSettlementHigh = totalGrossSettlementHigh – legalFeesHigh; resultDiv.innerHTML = "

Estimated Settlement Range:

" + "Gross Settlement (before fees): $" + totalGrossSettlementLow.toFixed(2) + " – $" + totalGrossSettlementHigh.toFixed(2) + "" + "Estimated Legal Fees: $" + legalFeesLow.toFixed(2) + " – $" + legalFeesHigh.toFixed(2) + "" + "Estimated Net Settlement (after fees): $" + netSettlementLow.toFixed(2) + " – $" + netSettlementHigh.toFixed(2) + ""; } #discrimination-settlement-calculator { font-family: sans-serif; padding: 20px; border: 1px solid #ccc; border-radius: 8px; max-width: 600px; margin: 20px auto; background-color: #f9f9f9; } #discrimination-settlement-calculator h2, #discrimination-settlement-calculator h3 { text-align: center; color: #333; } .form-group { margin-bottom: 15px; } .form-group label { display: block; margin-bottom: 5px; font-weight: bold; color: #555; } .form-group input[type="number"] { width: calc(100% – 12px); padding: 10px; border: 1px solid #ccc; border-radius: 4px; box-sizing: border-box; } #discrimination-settlement-calculator button { display: block; width: 100%; padding: 12px; background-color: #007bff; color: white; border: none; border-radius: 4px; font-size: 16px; cursor: pointer; transition: background-color 0.3s ease; } #discrimination-settlement-calculator button:hover { background-color: #0056b3; } #result { margin-top: 20px; padding: 15px; border: 1px dashed #007bff; background-color: #e7f3ff; border-radius: 4px; } #result h3 { margin-top: 0; color: #0056b3; } #result p { margin-bottom: 10px; line-height: 1.5; } #result strong { color: #333; }

Leave a Reply

Your email address will not be published. Required fields are marked *