LA Dutch

Free Dutching Calculator: Work Out Your Stakes Quickly

 

<!DOCTYPE html>
<html lang=”en”>
<head>
<meta charset=”UTF-8″>
<meta name=”viewport” content=”width=device-width, initial-scale=1.0″>
<style>
/* Add your custom styles here */
</style>
<title>Hedging Calculator</title>
</head>
<body>

<button onclick=”hedgeCalculator()”>Open Hedging Calculator</button>

<script>
function hedgeCalculator() {
// Get user input for odds
var oddsOption1 = parseFloat(prompt(“Enter odds for Option 1”));
var oddsOption2 = parseFloat(prompt(“Enter odds for Option 2”));
var oddsOption3 = parseFloat(prompt(“Enter odds for Option 3”));
var oddsOption4 = 3; // Fixed return of 3/1 for Option 4

// Get total bet amount
var totalBetAmount = parseFloat(prompt(“Enter total bet amount”));

// Calculate individual bet amounts
var betOption1 = totalBetAmount / oddsOption1;
var betOption2 = totalBetAmount / oddsOption2;
var betOption3 = totalBetAmount / oddsOption3;
var betOption4 = totalBetAmount / oddsOption4;

// Display the results
alert(“Bet Amount for Option 1: $” + betOption1.toFixed(2) + “\n” +
“Bet Amount for Option 2: $” + betOption2.toFixed(2) + “\n” +
“Bet Amount for Option 3: $” + betOption3.toFixed(2) + “\n” +
“Bet Amount for Option 4: $” + betOption4.toFixed(2));
}
</script>

</body>
</html>