Average Daily Room Rate (ADR) Calculator
The Average Daily Room Rate (ADR) is a key performance indicator (KPI) in the hotel industry. It represents the average rental income earned per occupied room in a hotel or lodging facility over a specific period. ADR is calculated by dividing the total room revenue by the number of rooms sold. It's a crucial metric for understanding a hotel's pricing strategy, revenue management effectiveness, and overall profitability on a per-room basis. A higher ADR generally indicates better revenue generation from each room.
function calculateADR() {
var totalRoomRevenue = parseFloat(document.getElementById("totalRoomRevenue").value);
var numberOfRoomsSold = parseFloat(document.getElementById("numberOfRoomsSold").value);
var resultDiv = document.getElementById("adrResult");
if (isNaN(totalRoomRevenue) || isNaN(numberOfRoomsSold)) {
resultDiv.innerHTML = "Please enter valid numbers for both fields.";
return;
}
if (numberOfRoomsSold === 0) {
resultDiv.innerHTML = "Number of rooms sold cannot be zero.";
return;
}
var adr = totalRoomRevenue / numberOfRoomsSold;
resultDiv.innerHTML = "
Average Daily Room Rate (ADR):
$" + adr.toFixed(2) + "";
}
#averageRoomRateCalculator {
font-family: sans-serif;
border: 1px solid #ccc;
padding: 20px;
border-radius: 8px;
max-width: 500px;
margin: 20px auto;
background-color: #f9f9f9;
}
#averageRoomRateCalculator h2 {
text-align: center;
color: #333;
margin-bottom: 15px;
}
#averageRoomRateCalculator p {
line-height: 1.6;
color: #555;
margin-bottom: 25px;
text-align: justify;
}
.calculator-inputs {
display: flex;
flex-direction: column;
gap: 15px;
}
.input-group {
display: flex;
flex-direction: column;
gap: 5px;
}
.input-group label {
font-weight: bold;
color: #444;
}
.input-group input {
padding: 10px;
border: 1px solid #ccc;
border-radius: 4px;
font-size: 16px;
}
#averageRoomRateCalculator button {
padding: 12px 20px;
background-color: #007bff;
color: white;
border: none;
border-radius: 4px;
font-size: 16px;
cursor: pointer;
transition: background-color 0.3s ease;
margin-top: 10px;
}
#averageRoomRateCalculator button:hover {
background-color: #0056b3;
}
.calculator-result {
margin-top: 25px;
padding: 15px;
background-color: #e9ecef;
border: 1px solid #ced4da;
border-radius: 4px;
text-align: center;
}
.calculator-result h3 {
margin-top: 0;
color: #333;
}
.calculator-result p {
font-size: 24px;
font-weight: bold;
color: #28a745;
margin-bottom: 0;
}