Investor Risk Profile Calculator
About this app
Assess an investor's risk profile through a guided questionnaire and determine portfolio allocation.
Investor Risk Profile Calculator Investor Risk Profile Calculator Question 1: Sample Question? Option 1 Option 2 Option 3 Progress: 1 / 10
Related apps
Put this on your site
Source
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Investor Risk Profile Calculator</title>
<meta name="description" content="Assess an investor's risk profile through a guided questionnaire and determine portfolio allocation.">
<meta name="keywords" content="investor, risk profile, portfolio allocation, questionnaire, calculator">
<style>
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
background-color: #f5f5f5;
}
.container {
max-width: 800px;
margin: 20px auto;
padding: 20px;
background-color: #fff;
border-radius: 8px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
h1 {
text-align: center;
}
.question {
margin-bottom: 20px;
}
.options {
display: flex;
justify-content: center;
gap: 10px;
margin-top: 10px;
}
button {
padding: 8px 16px;
background-color: #007bff;
color: #fff;
border: none;
border-radius: 4px;
cursor: pointer;
}
button:hover {
background-color: #0056b3;
}
#progress {
text-align: center;
margin-top: 20px;
}
</style>
</head>
<body>
<div class="container">
<h1>Investor Risk Profile Calculator</h1>
<div class="question" id="question1">
<p>Question 1: Sample Question?</p>
<div class="options">
<button onclick="selectAnswer(1, 3)">Option 1</button>
<button onclick="selectAnswer(1, 6)">Option 2</button>
<button onclick="selectAnswer(1, 9)">Option 3</button>
</div>
</div>
<!-- Repeat the above question div for all 10 questions -->
<div id="progress">Progress: <span id="currentQuestion">1</span> / 10</div>
</div>
<script>
let currentQuestion = 1;
let totalRiskNumber = 0;
function selectAnswer(questionNum, riskValue) {
totalRiskNumber += riskValue;
document.getElementById(`question${questionNum}`).style.display = "none";
currentQuestion++;
if (currentQuestion <= 10) {
document.getElementById(`question${currentQuestion}`).style.display = "block";
document.getElementById('currentQuestion').textContent = currentQuestion;
} else {
calculateRiskProfile();
}
}
function calculateRiskProfile() {
let riskProfile;
if (totalRiskNumber >= 2 && totalRiskNumber <= 5) {
riskProfile = "Conservative";
} else if (totalRiskNumber >= 6 && totalRiskNumber <= 8) {
riskProfile = "Balanced";
} else if (totalRiskNumber >= 9 && totalRiskNumber <= 11) {
riskProfile = "Growth";
} else {
riskProfile = "Aggressive";
}
displayResult(riskProfile);
}
function displayResult(profile) {
const resultContainer = document.createElement('div');
resultContainer.innerHTML = `
<h2>Your Risk Profile: ${profile}</h2>
<p>Portfolio Allocation Recommendation: Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p>
`;
document.querySelector('.container').appendChild(resultContainer);
}
</script>
</body>
</html>
NEW APPS
These are apps made by the community!