Reinsurance Participation Calculator
About this app
Calculate the participation of three reinsurance entities based on user-defined reinsurance limits and desired capacities.
Reinsurance Participation Calculator 📊 Reinsurance Participation Calculator Reinsurance Limit: Desired Participation: Calculate
Related apps
Put this on your site
Source
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>Reinsurance Participation Calculator</title>
<meta name="description" content="Calculate the participation of three reinsurance entities based on user-defined reinsurance limits and desired capacities.">
<meta name="keywords" content="Reinsurance, Participation, Calculator">
<style>
/* App CSS Goes Here */
body {
background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
font-family: 'Roboto', sans-serif;
}
.container {
margin-top: 3rem;
}
.result {
margin-top: 2rem;
}
</style>
<script type="text/javascript">
try {
// App Javascript Goes Here. Place your entire script content inside the try block for error handling.
const maxCapacity = {
'Hal': 500000,
'Uzb': 1500000,
'Nom': 1500000
};
function calculateParticipation(limit, desiredParticipation) {
let maxParticipation = {
'Hal': Math.min(maxCapacity['Hal'], limit),
'Uzb': Math.min(maxCapacity['Uzb'], limit * 0.1),
'Nom': Math.min(maxCapacity['Nom'], limit * 0.1)
}
let totalMaxParticipation = Object.values(maxParticipation).reduce((a, b) => a + b, 0);
if (desiredParticipation <= totalMaxParticipation) {
for (let entity in maxParticipation) {
maxParticipation[entity] = Math.round(maxParticipation[entity] / totalMaxParticipation * desiredParticipation);
}
}
return maxParticipation;
}
document.addEventListener("DOMContentLoaded", function() {
document.getElementById('calculate').addEventListener('click', function() {
let limit = parseFloat(document.getElementById('limit').value);
let desiredParticipation = parseFloat(document.getElementById('participation').value);
let result = calculateParticipation(limit, desiredParticipation);
document.getElementById('result').innerHTML = `
Hal: ${result['Hal']}<br>
Uzb: ${result['Uzb']}<br>
Nom: ${result['Nom']}<br>
Total: ${Object.values(result).reduce((a, b) => a + b, 0)}
`;
});
});
} catch (error) {
// This will throw the error to the parent window.
throw error;
}
</script>
</head>
<body>
<div id="main-container" class="container">
<!-- App HTML Goes Here -->
<h1>📊 Reinsurance Participation Calculator</h1>
<div>
<label for="limit">Reinsurance Limit:</label>
<input type="number" id="limit" placeholder="Enter reinsurance limit"></input>
</div>
<div>
<label for="participation">Desired Participation:</label>
<input type="number" id="participation" placeholder="Enter desired participation"></input>
</div>
<button id="calculate" class="btn btn-primary">Calculate</button>
<div id="result" class="result"></div>
</div>
</body>
</html>
NEW APPS
These are apps made by the community!