Understanding your poker win rate is crucial for assessing your performance and profitability at the poker table. A positive win rate indicates you are a winning player, while a negative rate suggests you are losing money over time. This calculator helps you estimate your win rate based on the number of hands played and the amount won or lost.
function calculateWinRate() {
var handsPlayed = document.getElementById("handsPlayed").value;
var totalProfitLoss = document.getElementById("totalProfitLoss").value;
var resultDiv = document.getElementById("result");
// Clear previous results
resultDiv.innerHTML = "";
// Validate inputs
if (isNaN(handsPlayed) || handsPlayed <= 0) {
resultDiv.innerHTML = "Please enter a valid number of hands played (greater than 0).";
return;
}
if (isNaN(totalProfitLoss)) {
resultDiv.innerHTML = "Please enter a valid number for total profit/loss.";
return;
}
// Calculate win rate per hand
var winRatePerHand = parseFloat(totalProfitLoss) / parseFloat(handsPlayed);
// Display results
resultDiv.innerHTML = "