<div id="awc-water-calc" style="max-width: 720px; margin: 20px auto; padding: 25px; background: #ffffff; border: 1px solid #e2e8f0; border-radius: 12px; box-shadow: 0 4px 12px rgba(0,0,0,0.06); font-family: system-ui, -apple-system, sans-serif; color: #1e293b;">
<h2 style="margin-top: 0; color: #0f172a; font-size: 22px; border-bottom: 2px solid #0284c7; padding-bottom: 10px;">Daily Water Intake Calculator</h2>
<div style="display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-top: 20px;">
<div>
<label style="display: block; font-weight: 600; margin-bottom: 6px; font-size: 14px;">Body Weight (lbs)</label>
<input type="number" id="wi-weight" value="160" min="30" max="600" style="width: 100%; padding: 10px; border: 1px solid #cbd5e1; border-radius: 6px; font-size: 16px; box-sizing: border-box;">
</div>
<div>
<label style="display: block; font-weight: 600; margin-bottom: 6px; font-size: 14px;">Daily Exercise (Minutes)</label>
<input type="number" id="wi-ex" value="30" min="0" max="300" step="10" style="width: 100%; padding: 10px; border: 1px solid #cbd5e1; border-radius: 6px; font-size: 16px; box-sizing: border-box;">
</div>
</div>
<div style="margin-top: 25px; padding: 20px; background: #f0f9ff; border-radius: 10px; border: 1px solid #bae6fd; text-align: center;">
<div style="font-size: 14px; color: #475569; font-weight: 600; text-transform: uppercase;">Recommended Daily Water Intake</div>
<div id="wi-main" style="font-size: 36px; font-weight: 800; color: #0369a1; margin: 6px 0;">92 oz / day</div>
<div style="display: flex; justify-content: space-around; flex-wrap: wrap; gap: 10px; margin-top: 15px; padding-top: 15px; border-top: 1px solid #cbd5e1; font-size: 14px;">
<div><strong>In Liters:</strong> <span id="wi-liters">2.7 Liters</span></div>
<div><strong>8-oz Glasses:</strong> <span id="wi-glasses">11.5 Glasses</span></div>
</div>
</div>
</div>
<script>
function calcAWCWater() {
const lbs = parseFloat(document.getElementById('wi-weight').value) || 0;
const mins = parseFloat(document.getElementById('wi-ex').value) || 0;
// Standard rule: half body weight in oz + 12 oz per 30 mins of exercise
const baseOz = lbs * 0.5;
const exOz = (mins / 30) * 12;
const totalOz = Math.round(baseOz + exOz);
const liters = (totalOz * 0.0295735).toFixed(1);
const glasses = (totalOz / 8).toFixed(1);
document.getElementById('wi-main').innerText = `${totalOz} oz / day`;
document.getElementById('wi-liters').innerText = `${liters} Liters`;
document.getElementById('wi-glasses').innerText = `${glasses} Glasses`;
}
['wi-weight', 'wi-ex'].forEach(id => {
document.getElementById(id).addEventListener('input', calcAWCWater);
});
calcAWCWater();
</script>
How to Use This Daily Water Intake Calculator
Staying properly hydrated boosts energy, digestion, and focus. Enter your body weight in pounds and the average number of minutes you exercise each day to calculate how many ounces, liters, and 8-ounce glasses of water you should drink daily.
Tips for Staying Hydrated
- Drink a glass of water first thing in the morning before coffee or breakfast.
- Increase your intake during hot weather, travel, or intense physical workouts.
- Keep a reusable water bottle at your desk as a visual reminder throughout the day.