Calculate Strike Rate

Understanding Strike Rate in Cricket

In cricket, the strike rate is a crucial statistic that measures how quickly a batter scores runs or how effectively a bowler concedes runs. For batters, it represents the average number of runs scored per 100 balls faced. A higher strike rate indicates a more aggressive and faster-scoring batsman.

For bowlers, strike rate is calculated as the average number of balls bowled per wicket taken. A lower strike rate for a bowler is desirable, as it means they are taking wickets more frequently.

This calculator will help you determine the strike rate for a batter.

Batter Strike Rate Calculator

function calculateStrikeRate() { var runsScored = parseFloat(document.getElementById("runsScored").value); var ballsFaced = parseFloat(document.getElementById("ballsFaced").value); var resultElement = document.getElementById("result"); if (isNaN(runsScored) || isNaN(ballsFaced) || ballsFaced <= 0) { resultElement.innerHTML = "Please enter valid numbers for Runs Scored and Balls Faced, with Balls Faced being greater than zero."; return; } var strikeRate = (runsScored / ballsFaced) * 100; resultElement.innerHTML = "Your Strike Rate is: " + strikeRate.toFixed(2); } .calculator-wrapper { font-family: sans-serif; max-width: 800px; margin: 20px auto; padding: 20px; border: 1px solid #ddd; border-radius: 8px; display: flex; flex-wrap: wrap; gap: 20px; } .article-content { flex: 1; min-width: 300px; } .calculator-form { flex: 1; min-width: 300px; padding: 20px; border: 1px solid #eee; border-radius: 8px; background-color: #f9f9f9; } .calculator-form h3 { margin-top: 0; color: #333; } .form-group { margin-bottom: 15px; } .form-group label { display: block; margin-bottom: 5px; font-weight: bold; color: #555; } .form-group input { width: calc(100% – 20px); padding: 10px; border: 1px solid #ccc; border-radius: 4px; box-sizing: border-box; } .calculator-form button { background-color: #4CAF50; color: white; padding: 12px 20px; border: none; border-radius: 4px; cursor: pointer; font-size: 16px; width: 100%; } .calculator-form button:hover { background-color: #45a049; } #result { margin-top: 20px; font-size: 18px; font-weight: bold; color: #333; text-align: center; }

Leave a Comment