{"id":337,"date":"2025-12-02T11:13:33","date_gmt":"2025-12-02T16:13:33","guid":{"rendered":"https:\/\/sites.wp.odu.edu\/fromdata2dialogue\/?page_id=337"},"modified":"2025-12-03T21:57:50","modified_gmt":"2025-12-04T02:57:50","slug":"fuel-cost-calculator","status":"publish","type":"page","link":"https:\/\/sites.wp.odu.edu\/fromdata2dialogue\/fuel-cost-calculator\/","title":{"rendered":"Fuel Cost Comparison Calculator"},"content":{"rendered":"\n<p>\n<section id=\"heating-cost-tool\">\r\n  <h2>Wood Stove vs Current Heat: Cost Calculator<\/h2>\r\n  <p>Work through each step, then use section 3 to compare your yearly costs.<\/p>\r\n\r\n  <!-- 1. CURRENT HEATING FUEL -->\r\n  <details open>\r\n    <summary><strong>1. Your Current Heating Fuel<\/strong><\/summary>\r\n    <div class=\"ht-section\">\r\n      <label>\r\n        Price per unit ($):\r\n        <input type=\"number\" id=\"currentPrice\" min=\"0\" step=\"0.01\" value=\"0.14\">\r\n      <\/label>\r\n      <label>\r\n        Units used per month:\r\n        <input type=\"number\" id=\"currentUnits\" min=\"0\" step=\"0.1\" value=\"800\">\r\n      <\/label>\r\n      <div class=\"ht-output\">\r\n        <p>Monthly heating cost: <span id=\"currentMonthly\">$0.00<\/span><\/p>\r\n        <p>Yearly heating cost (x12 months): <span id=\"currentYearly\">$0.00<\/span><\/p>\r\n      <\/div>\r\n    <\/div>\r\n  <\/details>\r\n\r\n  <!-- 2. WOOD STOVE ESTIMATED COSTS -->\r\n  <details>\r\n    <summary><strong>2. Wood Stove Estimated Costs<\/strong><\/summary>\r\n    <div class=\"ht-section\">\r\n      <label>\r\n        Price per cord of wood ($):\r\n        <input type=\"number\" id=\"woodPricePerCord\" min=\"0\" step=\"0.01\" value=\"300\">\r\n      <\/label>\r\n      <label>\r\n        Cords of wood used per year:\r\n        <input type=\"number\" id=\"cordsPerYear\" min=\"0\" step=\"0.1\" value=\"3\">\r\n      <\/label>\r\n      <label>\r\n        Chimney sweep \/ inspection cost per year ($):\r\n        <input type=\"number\" id=\"sweepCost\" min=\"0\" step=\"0.01\" value=\"200\">\r\n      <\/label>\r\n\r\n      <div class=\"ht-output\">\r\n        <p>Annual wood cost: <span id=\"woodAnnual\">$0.00<\/span><\/p>\r\n        <p>Total yearly wood stove cost (wood + sweep): <span id=\"woodTotalYearly\">$0.00<\/span><\/p>\r\n      <\/div>\r\n    <\/div>\r\n  <\/details>\r\n\r\n  <!-- 3. COMPARE YEARLY COSTS -->\r\n  <details>\r\n    <summary><strong>3. Compare Your Yearly Costs<\/strong><\/summary>\r\n    <div class=\"ht-section\">\r\n      <button id=\"calcCompareBtn\" type=\"button\">Calculate &amp; Compare<\/button>\r\n\r\n      <div class=\"ht-output\" id=\"compareBox\" style=\"display:none;\">\r\n        <p>Current yearly heating cost: <span id=\"compareCurrent\">$0.00<\/span><\/p>\r\n        <p>Estimated yearly wood stove cost: <span id=\"compareWood\">$0.00<\/span><\/p>\r\n        <p><strong>Total yearly savings:<\/strong> <span id=\"compareSavings\">$0.00<\/span><\/p>\r\n      <\/div>\r\n    <\/div>\r\n  <\/details>\r\n\r\n  <p class=\"ht-note\">\r\n    This worksheet is meant as a simple educational tool. Actual savings will depend on your home, climate, stove efficiency,\r\n    insulation, and local fuel prices.\r\n  <\/p>\r\n<\/section>\r\n\r\n<style>\r\n  #heating-cost-tool {\r\n    max-width: 800px;\r\n    margin: 2rem auto;\r\n    padding: 1.5rem;\r\n    border-radius: 12px;\r\n    background: rgba(255,255,255,0.96);\r\n    font-family: system-ui, -apple-system, BlinkMacSystemFont, \"Segoe UI\", sans-serif;\r\n  }\r\n  #heating-cost-tool h2 {\r\n    text-align: center;\r\n    margin-bottom: 0.25rem;\r\n  }\r\n  #heating-cost-tool > p {\r\n    text-align: center;\r\n    margin-top: 0;\r\n    font-size: 0.9rem;\r\n  }\r\n  #heating-cost-tool details {\r\n    margin-top: 0.75rem;\r\n    border-radius: 8px;\r\n    border: 1px solid #e5e7eb;\r\n    background: #f9fafb;\r\n    padding: 0.4rem 0.75rem;\r\n  }\r\n  #heating-cost-tool summary {\r\n    cursor: pointer;\r\n    list-style: none;\r\n  }\r\n  #heating-cost-tool summary::-webkit-details-marker {\r\n    display: none;\r\n  }\r\n  #heating-cost-tool summary::before {\r\n    content: \"\u25b6 \";\r\n    font-size: 0.8rem;\r\n    display: inline-block;\r\n    transform: translateY(-1px);\r\n  }\r\n  #heating-cost-tool details[open] summary::before {\r\n    content: \"\u25bc \";\r\n  }\r\n  .ht-section {\r\n    margin-top: 0.5rem;\r\n    padding-top: 0.25rem;\r\n    border-top: 1px solid #e5e7eb;\r\n    display: grid;\r\n    gap: 0.5rem;\r\n  }\r\n  .ht-section label {\r\n    display: flex;\r\n    flex-direction: column;\r\n    font-size: 0.9rem;\r\n  }\r\n  .ht-section input {\r\n    margin-top: 0.15rem;\r\n    max-width: 220px;\r\n    padding: 0.35rem 0.45rem;\r\n    border-radius: 6px;\r\n    border: 1px solid #cbd5e1;\r\n    font-size: 0.9rem;\r\n  }\r\n  .ht-output {\r\n    margin-top: 0.4rem;\r\n    padding: 0.45rem 0.6rem;\r\n    border-radius: 6px;\r\n    background: #eff6ff;\r\n    font-size: 0.9rem;\r\n  }\r\n  .ht-output p {\r\n    margin: 0.15rem 0;\r\n  }\r\n  #calcCompareBtn {\r\n    margin-top: 0.25rem;\r\n    padding: 0.45rem 0.9rem;\r\n    border-radius: 999px;\r\n    border: none;\r\n    background: #2563eb;\r\n    color: #fff;\r\n    font-size: 0.95rem;\r\n    cursor: pointer;\r\n    width: fit-content;\r\n    transition: background 0.15s, transform 0.1s, box-shadow 0.1s;\r\n  }\r\n  #calcCompareBtn:hover {\r\n    background: #1d4ed8;\r\n    transform: translateY(-1px);\r\n    box-shadow: 0 3px 8px rgba(0,0,0,0.15);\r\n  }\r\n  #compareBox span {\r\n    font-weight: 600;\r\n  }\r\n  #compareSavings {\r\n    color: #16a34a;\r\n  }\r\n  .ht-note {\r\n    margin-top: 0.75rem;\r\n    font-size: 0.75rem;\r\n    color: #4b5563;\r\n    text-align: center;\r\n  }\r\n<\/style>\r\n\r\n<script>\r\n(function() {\r\n  const priceInput = document.getElementById('currentPrice');\r\n  const unitsInput = document.getElementById('currentUnits');\r\n  const currentMonthlyEl = document.getElementById('currentMonthly');\r\n  const currentYearlyEl = document.getElementById('currentYearly');\r\n\r\n  const woodPriceInput = document.getElementById('woodPricePerCord');\r\n  const cordsPerYearInput = document.getElementById('cordsPerYear');\r\n  const sweepCostInput = document.getElementById('sweepCost');\r\n  const woodAnnualEl = document.getElementById('woodAnnual');\r\n  const woodTotalYearlyEl = document.getElementById('woodTotalYearly');\r\n\r\n  const btnCompare = document.getElementById('calcCompareBtn');\r\n  const compareBox = document.getElementById('compareBox');\r\n  const compareCurrentEl = document.getElementById('compareCurrent');\r\n  const compareWoodEl = document.getElementById('compareWood');\r\n  const compareSavingsEl = document.getElementById('compareSavings');\r\n\r\n  function money(v) {\r\n    if (!isFinite(v)) return '$0.00';\r\n    return '$' + v.toFixed(2);\r\n  }\r\n\r\n  function calcCurrent() {\r\n    const price = parseFloat(priceInput.value) || 0;\r\n    const units = parseFloat(unitsInput.value) || 0;\r\n    const monthly = price * units;\r\n    const yearly = monthly * 12;\r\n    currentMonthlyEl.textContent = money(monthly);\r\n    currentYearlyEl.textContent = money(yearly);\r\n    return { monthly, yearly };\r\n  }\r\n\r\n  function calcWood() {\r\n    const pricePerCord = parseFloat(woodPriceInput.value) || 0;\r\n    const cords = parseFloat(cordsPerYearInput.value) || 0;\r\n    const sweep = parseFloat(sweepCostInput.value) || 0;\r\n    const woodAnnual = pricePerCord * cords;\r\n    const totalYearly = woodAnnual + sweep;\r\n    woodAnnualEl.textContent = money(woodAnnual);\r\n    woodTotalYearlyEl.textContent = money(totalYearly);\r\n    return { woodAnnual, totalYearly };\r\n  }\r\n\r\n  \/\/ Recalculate section 1 and 2 whenever inputs change\r\n  [priceInput, unitsInput].forEach(el => {\r\n    el.addEventListener('input', calcCurrent);\r\n  });\r\n  [woodPriceInput, cordsPerYearInput, sweepCostInput].forEach(el => {\r\n    el.addEventListener('input', calcWood);\r\n  });\r\n\r\n  \/\/ Main compare button\r\n  btnCompare.addEventListener('click', () => {\r\n    const current = calcCurrent();\r\n    const wood = calcWood();\r\n\r\n    const currentYearly = current.yearly;\r\n    const woodYearly = wood.totalYearly;\r\n    const savings = currentYearly - woodYearly;\r\n\r\n    compareCurrentEl.textContent = money(currentYearly);\r\n    compareWoodEl.textContent = money(woodYearly);\r\n    compareSavingsEl.textContent = money(savings);\r\n\r\n    compareBox.style.display = 'block';\r\n  });\r\n\r\n  \/\/ Initial calculation on load\r\n  calcCurrent();\r\n  calcWood();\r\n})();\r\n<\/script>\n<\/p>\n\n\n\n<p>\n<!-- Invisible looping fire sound -->\r\n<audio id=\"fireSound\" muted loop style=\"display:none;\">\r\n  <source src=\"https:\/\/www.dropbox.com\/scl\/fi\/ef97yv4voxjh3nxslog5l\/Short-Fireplace-Video-Loop-with-Sound-1-minute-loop-Template-Fireplace-for-Background-Winter.mp3?rlkey=05fgp5optoh1p7ipk4phq7tdq&st=1zbh9zos&raw=1\" type=\"audio\/mpeg\">\r\n<\/audio>\r\n\r\n<script>\r\n(document.addEventListener || window.addEventListener)(\"scroll\", function () {\r\n    const audio = document.getElementById(\"fireSound\");\r\n    if (audio.paused) {\r\n        audio.play().catch(()=>{});\r\n        audio.muted = false;\r\n    }\r\n}, { once: true });\r\n<\/script>\n<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Wood Stove vs Current Heat: Cost Calculator Work through each step, then use section 3 to compare your yearly costs. 1. Your Current Heating Fuel Price per unit ($): Units used per month: Monthly heating cost: $0.00 Yearly heating cost&#8230; <a class=\"more-link\" href=\"https:\/\/sites.wp.odu.edu\/fromdata2dialogue\/fuel-cost-calculator\/\">Continue Reading &rarr;<\/a><\/p>\n","protected":false},"author":31707,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"_links":{"self":[{"href":"https:\/\/sites.wp.odu.edu\/fromdata2dialogue\/wp-json\/wp\/v2\/pages\/337"}],"collection":[{"href":"https:\/\/sites.wp.odu.edu\/fromdata2dialogue\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/sites.wp.odu.edu\/fromdata2dialogue\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/sites.wp.odu.edu\/fromdata2dialogue\/wp-json\/wp\/v2\/users\/31707"}],"replies":[{"embeddable":true,"href":"https:\/\/sites.wp.odu.edu\/fromdata2dialogue\/wp-json\/wp\/v2\/comments?post=337"}],"version-history":[{"count":5,"href":"https:\/\/sites.wp.odu.edu\/fromdata2dialogue\/wp-json\/wp\/v2\/pages\/337\/revisions"}],"predecessor-version":[{"id":536,"href":"https:\/\/sites.wp.odu.edu\/fromdata2dialogue\/wp-json\/wp\/v2\/pages\/337\/revisions\/536"}],"wp:attachment":[{"href":"https:\/\/sites.wp.odu.edu\/fromdata2dialogue\/wp-json\/wp\/v2\/media?parent=337"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}