{"id":8417,"date":"2026-07-26T01:06:28","date_gmt":"2026-07-26T01:06:28","guid":{"rendered":"https:\/\/drakemarine.com\/battery-bank-calculator\/"},"modified":"2026-09-04T00:45:39","modified_gmt":"2026-09-04T00:45:39","slug":"calculateur-de-batterie-de-secours","status":"publish","type":"page","link":"https:\/\/www.drakemarine.com\/fr\/battery-bank-calculator\/","title":{"rendered":"Calculateur de dimensionnement des batteries marines et des c\u00e2bles"},"content":{"rendered":"<p>Measure your battery box and we will work out the biggest genuine Fullriver bank that fits \u2014 drawn to scale with the wiring, link cables, busbars and fuses, ready to order with a downloadable installation plan.<\/p>\n<style>\n.dm-tool{max-width:920px;margin:0 auto;padding:8px 0 40px;color:#12395e;font-family:'DM Sans',Helvetica,Arial,sans-serif}\n.dm-tool .card{background:#fff;border:1px solid #e2e8f0;border-radius:14px;padding:26px;margin:18px 0}\n.dm-tool h2{margin:0 0 6px;font-size:1.25rem}\n.dm-tool .hint{color:#5b7186;font-size:.9rem;margin:0 0 18px}\n.dm-tool .tabs{display:flex;gap:8px;margin:4px 0 6px;flex-wrap:wrap}\n.dm-tool .tabs button{font-family:inherit;font-weight:800;font-size:.95rem;border:1.5px solid #cbd5e1;background:#fff;color:#41586e;border-radius:10px;padding:11px 18px;cursor:pointer}\n.dm-tool .tabs button.on{background:#12395e;border-color:#12395e;color:#fff}\n.dm-tool label{display:block;font-weight:700;font-size:.85rem;letter-spacing:.04em;text-transform:uppercase;color:#41586e;margin:16px 0 6px}\n.dm-tool select,.dm-tool input[type=number]{width:100%;max-width:340px;padding:11px 12px;border:1.5px solid #cbd5e1;border-radius:9px;font-size:1rem;font-family:inherit;background:#fff;color:#12395e}\n.dm-tool .grid3{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:0 18px;max-width:640px}\n.dm-tool .checks{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:8px;margin-top:6px}\n.dm-tool .checks label{display:flex;align-items:center;gap:9px;font-weight:600;text-transform:none;letter-spacing:0;font-size:.93rem;margin:0;background:#f4f8fb;border:1px solid #e2e8f0;border-radius:9px;padding:10px 12px;cursor:pointer}\n.dm-tool .checks input{width:17px;height:17px;accent-color:#00A8FF}\n.dm-tool button.go{background:#00A8FF;color:#04263f;font-weight:800;font-size:1rem;border:0;border-radius:10px;padding:14px 28px;margin-top:22px;cursor:pointer;font-family:inherit}\n.dm-tool button.go:hover{background:#0b8ed4}\n.dm-tool .result{display:none;border-top:4px solid #00A8FF}\n.dm-tool .bank{background:#eef5fb;border:1px solid #cfe0ef;border-radius:10px;padding:14px 16px;font-size:.98rem;margin-bottom:16px}\n.dm-tool .diag{background:#fff;border:1px solid #e2e8f0;border-radius:10px;padding:14px 14px 10px;margin-bottom:16px}\n.dm-tool .diag svg{width:100%;height:auto;display:block}\n.dm-tool .diag .cap{font-size:.82rem;color:#5b7186;margin:8px 2px 2px;line-height:1.45}\n.dm-tool .diag button.dl{background:#fff;border:1.5px solid #00A8FF;color:#0b76c4;font-weight:800;font-size:.88rem;border-radius:9px;padding:10px 18px;margin:10px 0 2px;cursor:pointer;font-family:inherit}\n.dm-tool .diag button.dl:hover{background:#eef7fd}\n.dm-tool .bank img.prod{float:right;width:104px;height:104px;object-fit:contain;background:#fff;border:1px solid #dbe5ee;border-radius:10px;margin:0 0 6px 14px}\n.dm-tool table{width:100%;border-collapse:collapse;font-size:.93rem}\n.dm-tool th{text-align:left;font-size:.76rem;letter-spacing:.06em;text-transform:uppercase;color:#5b7186;padding:8px 8px;border-bottom:2px solid #e2e8f0}\n.dm-tool td{padding:10px 8px;border-bottom:1px solid #eef2f6;vertical-align:top}\n.dm-tool td a.cart{display:inline-block;background:#00A8FF;color:#04263f;font-weight:800;font-size:.85rem;border-radius:8px;padding:9px 14px;text-decoration:none;white-space:nowrap}\n.dm-tool td a.view{color:#0b76c4;font-weight:700;text-decoration:none;font-size:.88rem}\n.dm-tool .note{font-size:.85rem;color:#5b7186;margin-top:14px;line-height:1.5}\n.dm-tool .cta{background:#12395e;border-radius:12px;padding:22px;color:#f6f4ed;margin-top:18px;text-align:center}\n.dm-tool .cta a.b{display:inline-block;background:#00A8FF;color:#04263f;font-weight:800;border-radius:9px;padding:12px 22px;text-decoration:none;margin:8px 6px 0}\n.dm-tool .cta a.w{display:inline-block;background:#f6f4ed;color:#12395e;font-weight:800;border-radius:9px;padding:12px 22px;text-decoration:none;margin:8px 6px 0}\n<\/style>\n<div class=\"dm-tool\" id=\"dm-bank-tool\">\n<div class=\"tabs\">\n    <button type=\"button\" id=\"tab-box\" class=\"on\" onclick=\"dmTab('box')\">Fit my battery box<\/button><br \/>\n    <button type=\"button\" id=\"tab-load\" onclick=\"dmTab('load')\">Size by daily loads<\/button>\n  <\/div>\n<div class=\"card\" id=\"pane-box\">\n<h2>Measure the box, we&#8217;ll fill it<\/h2>\n<p class=\"hint\">Internal dimensions of your battery box or compartment \u2014 we&#8217;ll work out the biggest genuine Fullriver bank that physically fits, ready to order.<\/p>\n<div class=\"grid3\">\n<div><label for=\"bx-l\">Box length (mm)<\/label><input type=\"number\" id=\"bx-l\" min=\"150\" max=\"3000\" step=\"5\" value=\"700\"><\/div>\n<div><label for=\"bx-w\">Box width (mm)<\/label><input type=\"number\" id=\"bx-w\" min=\"100\" max=\"2000\" step=\"5\" value=\"400\"><\/div>\n<div><label for=\"bx-h\">Box height (mm)<\/label><input type=\"number\" id=\"bx-h\" min=\"150\" max=\"800\" step=\"5\" value=\"280\"><\/div>\n<\/p><\/div>\n<p>    <label for=\"bx-v\">System voltage<\/label><br \/>\n    <select id=\"bx-v\"><option value=\"12\" selected>12 V<\/option><option value=\"24\">24 V<\/option><\/select><br \/>\n    <label for=\"bx-use\">What&#8217;s the bank for?<\/label><br \/>\n    <select id=\"bx-use\"><option value=\"dc\" selected>House \/ domestic power \u2014 DC series (deep cycle)<\/option><option value=\"ft\">Engine starting \u2014 Full Throttle (FT) series<\/option><option value=\"egl\">Golf buggy &amp; electric vehicle \u2014 Supreme EGL series<\/option><\/select><\/p>\n<div id=\"bx-cca-wrap\" style=\"display:none\">\n      <label for=\"bx-cca\">Engine needs (cold cranking amps)<\/label><br \/>\n      <select id=\"bx-cca\" onchange=\"document.getElementById('bx-cca-cwrap').style.display=(this.value==='custom')?'block':'none';\"><option value=\"200\">Small outboard \/ PWC &mdash; 200 CCA<\/option><option value=\"400\">Mid outboard, 50&ndash;150 hp &mdash; 400 CCA<\/option><option value=\"550\" selected>Large outboard \/ petrol inboard &mdash; 550 CCA<\/option><option value=\"800\">Small marine diesel &mdash; 800 CCA<\/option><option value=\"900\">Diesel inboard &mdash; 900 CCA<\/option><option value=\"1100\">Large diesel &mdash; 1100 CCA<\/option><option value=\"1400\">Large diesel, hard-start duty &mdash; 1400 CCA<\/option><option value=\"1800\">Twin engines on a shared start bank &mdash; 1800 CCA<\/option><option value=\"2200\">Commercial \/ workboat diesel &mdash; 2200 CCA<\/option><option value=\"3000\">Heavy commercial diesel &mdash; 3000 CCA<\/option><option value=\"4000\">Very heavy commercial diesel &mdash; 4000 CCA<\/option><option value=\"custom\">Other &mdash; enter the exact figure<\/option><\/select><\/p>\n<div id=\"bx-cca-cwrap\" style=\"display:none;margin-top:10px\">\n        <label for=\"bx-cca-custom\">Exact CCA required (50&ndash;4000)<\/label><br \/>\n        <input id=\"bx-cca-custom\" type=\"number\" min=\"50\" max=\"4000\" step=\"10\" value=\"1200\" style=\"width:100%;box-sizing:border-box\">\n      <\/div>\n<p style=\"margin:10px 0 0;font-size:.86em;line-height:1.45;opacity:.8\">Use the CCA figure on the engine data plate or in the handbook if you have it. If your engine builder quotes <strong>MCA<\/strong> (marine cranking amps) instead, that is measured at 0&nbsp;&deg;C and runs roughly 15&ndash;30% higher than the CCA figure for the same battery &mdash; so do not enter an MCA number here as if it were CCA.<\/p>\n<\/p><\/div>\n<p>    <button class=\"go\" type=\"button\" onclick=\"dmBoxFit()\">Find my biggest bank<\/button>\n  <\/div>\n<div class=\"card\" id=\"pane-load\" style=\"display:none\">\n<h2>What&#8217;s aboard?<\/h2>\n<p class=\"hint\">Tick the loads (typical tropical figures per 24 h) and set your autonomy \u2014 we&#8217;ll size the AGM bank the honest way: 50% depth of discharge, heat allowed for.<\/p>\n<div class=\"checks\">\n      <label><input type=\"checkbox\" data-ah=\"60\" checked> Fridge (60 Ah\/day)<\/label><br \/>\n      <label><input type=\"checkbox\" data-ah=\"45\"> Freezer (45 Ah\/day)<\/label><br \/>\n      <label><input type=\"checkbox\" data-ah=\"12\" checked> LED lighting (12 Ah\/day)<\/label><br \/>\n      <label><input type=\"checkbox\" data-ah=\"20\" checked> Fans \u00d72 (20 Ah\/day)<\/label><br \/>\n      <label><input type=\"checkbox\" data-ah=\"30\"> Autopilot on passage (30 Ah\/day)<\/label><br \/>\n      <label><input type=\"checkbox\" data-ah=\"15\"> Instruments &amp; VHF (15 Ah\/day)<\/label><br \/>\n      <label><input type=\"checkbox\" data-ah=\"50\"> Starlink \/ router (50 Ah\/day)<\/label><br \/>\n      <label><input type=\"checkbox\" data-ah=\"25\"> Phones, laptops &amp; USB (25 Ah\/day)<\/label><br \/>\n      <label><input type=\"checkbox\" data-ah=\"20\"> Watermaker (per hr\/day) (20 Ah)<\/label><br \/>\n      <label><input type=\"checkbox\" data-ah=\"40\"> Inverter misc. (40 Ah\/day)<\/label>\n    <\/div>\n<p>    <label for=\"bk-extra\">Anything else (Ah\/day)<\/label><br \/>\n    <input type=\"number\" id=\"bk-extra\" min=\"0\" max=\"500\" step=\"5\" value=\"0\"><br \/>\n    <label for=\"bk-days\">Days of autonomy between proper charges<\/label><br \/>\n    <select id=\"bk-days\"><option value=\"1\">1 day<\/option><option value=\"1.5\" selected>1.5 days<\/option><option value=\"2\">2 days<\/option><option value=\"3\">3 days<\/option><\/select><br \/>\n    <button class=\"go\" type=\"button\" onclick=\"dmBankCalc()\">Size my bank<\/button>\n  <\/div>\n<div class=\"card\" id=\"cable-card\">\n<h2 style=\"font-size:1.05rem\">Cable check (optional)<\/h2>\n<div class=\"grid3\">\n<div><label for=\"bk-inv\">Biggest inverter load (W)<\/label><input type=\"number\" id=\"bk-inv\" min=\"0\" max=\"5000\" step=\"100\" value=\"1500\"><\/div>\n<div><label for=\"bk-run\">Cable run one way (m)<\/label><input type=\"number\" id=\"bk-run\" min=\"0.5\" max=\"15\" step=\"0.5\" value=\"2\"><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div class=\"card result\" id=\"bk-result\">\n<h2 id=\"bk-title\">Your bank options<\/h2>\n<div class=\"bank\" id=\"bk-sum\"><\/div>\n<div class=\"diag\" id=\"bk-diagram\" style=\"display:none\"><\/div>\n<div class=\"diag\" id=\"bk-links\" style=\"display:none\"><\/div>\n<table>\n<thead>\n<tr>\n<th>Option<\/th>\n<th>Bank<\/th>\n<th>Fits as<\/th>\n<th>Capacity<\/th>\n<th>Weight<\/th>\n<th>Order<\/th>\n<\/tr>\n<\/thead>\n<tbody id=\"bk-rows\"><\/tbody>\n<\/table>\n<div class=\"bank\" id=\"bk-cable\" style=\"margin-top:16px\"><\/div>\n<p class=\"note\" id=\"bk-note\">\n<div class=\"cta\">\n      <strong style=\"font-size:1.05rem\">Order straight away, or have it checked first<\/strong><br \/>\n      <span style=\"color:#c9d6e2;font-size:.92rem\">The order buttons drop the full bank in your basket. Prefer a human check? Email your numbers \u2014 we confirm fit, charging setup and delivery, including compliant battery shipping worldwide.<\/span><br \/>\n      <a class=\"b\" id=\"bk-mail\" href=\"#\">Email my sizing<\/a><br \/>\n      <a class=\"w\" href=\"\/fullriver-batteries-thailand\/\">Fullriver range<\/a>\n    <\/div>\n<\/p><\/div>\n<\/div>\n<p><script>\n\/\/ Verified published dims (mm, incl. terminals) & weights. Fit is confirmed again at order.\nvar DM_DC=[\n {n:'DC55-12', ah:55, l:229,w:138,h:212, kg:17.6, id:3750},\n {n:'DC85-12', ah:85, l:260,w:169,h:236, kg:25.1, id:3751},\n {n:'DC105-12',ah:105,l:307,w:169,h:236, kg:30.2, id:3757},\n {n:'DC115-12',ah:115,l:328,w:172,h:241, kg:32.7, id:3758},\n {n:'DC145-12',ah:145,l:341,w:173,h:287, kg:44.3, id:16156, pg:'\/product\/deep-cycle-battery-fullriver-dc145-12\/'},\n {n:'DC150-12',ah:135,l:327,w:182,h:294, kg:42.6, id:3759},\n {n:'DC160-12',ah:160,l:484,w:171,h:241, kg:45.4, id:6376},\n {n:'DC210-12',ah:210,l:530,w:209,h:239, kg:60.4, id:3760},\n {n:'DC260-12',ah:260,l:521,w:269,h:245, kg:78.2, id:3761}\n];\nvar DM_EGL=[\n {n:'EGL200-6', volt:6, ah:200, l:262,w:181,h:262, kg:33.6},\n {n:'EGL220-6', volt:6, ah:220, l:262,w:181,h:281, kg:37.5},\n {n:'EGL170-8', volt:8, ah:170, l:260,w:182,h:288, kg:37.0}\n];\nvar DM_EGL_PG='\/product\/supreme-deep-cycle-battery-fullriver-agm-battery\/';\n\/* Product photo per model \u2014 URLs filled from the site media library at publish.\n   Missing\/empty entry = photo panel simply not shown. *\/\nvar DM_IMG={\"DC55-12\":\"https:\/\/drakemarine.com\/wp-content\/uploads\/2020\/01\/main-DC55-12.jpg\",\"DC85-12\":\"https:\/\/drakemarine.com\/wp-content\/uploads\/2020\/01\/main-DC85-12.jpg\",\"DC105-12\":\"https:\/\/drakemarine.com\/wp-content\/uploads\/2020\/01\/main-DC105-12-400x400-1.jpg\",\"DC115-12\":\"https:\/\/drakemarine.com\/wp-content\/uploads\/2020\/01\/main-DC115-12-400x400-1.jpg\",\"DC150-12\":\"https:\/\/drakemarine.com\/wp-content\/uploads\/2020\/01\/main-DC150-12.jpg\",\"DC210-12\":\"https:\/\/drakemarine.com\/wp-content\/uploads\/2020\/01\/main-DC210-12.jpg\",\"DC260-12\":\"https:\/\/drakemarine.com\/wp-content\/uploads\/2020\/01\/main-DC210-12.jpg\",\"FT230\":\"https:\/\/drakemarine.com\/wp-content\/uploads\/2021\/02\/main-FT230.jpg\",\"FT410\":\"https:\/\/drakemarine.com\/wp-content\/uploads\/2021\/02\/main-FT410.jpg\",\"FT560\":\"https:\/\/drakemarine.com\/wp-content\/uploads\/2021\/02\/main-FT560.jpg\",\"FT825-34\":\"https:\/\/drakemarine.com\/wp-content\/uploads\/2021\/02\/main-FT825-34.jpg\",\"FT930-65\":\"https:\/\/drakemarine.com\/wp-content\/uploads\/2021\/02\/main-FT930-65.jpg\",\"FT1100-31\":\"https:\/\/drakemarine.com\/wp-content\/uploads\/2021\/02\/main-FT1100-31.jpg\",\"DC160-12\":\"https:\/\/drakemarine.com\/wp-content\/uploads\/2026\/07\/DC160-12-1.webp\"};\nvar DM_FT=[\n {n:'FT156',      cca:156,  ah:15,  l:200,w:77, h:138, kg:5.6,  ord:1},\n {n:'FT185',      cca:185,  ah:14,  l:177,w:86, h:131, kg:5.0,  ord:1},\n {n:'FT200',      cca:200,  ah:14,  l:170,w:99, h:157, kg:6.0,  ord:1},\n {n:'FT230',      cca:230,  ah:20,  l:181,w:77, h:167, kg:7.0,  id:3778},\n {n:'FT265',      cca:265,  ah:18,  l:170,w:99, h:175, kg:7.1,  ord:1},\n {n:'FT310-20L',  cca:310,  ah:20,  l:175,w:87, h:156, kg:6.8,  ord:1},\n {n:'FT400-30L',  cca:400,  ah:30,  l:166,w:130,h:176, kg:10.1, ord:1},\n {n:'FT410',      cca:410,  ah:28,  l:165,w:176,h:144, kg:10.5, id:3783},\n {n:'FT438-U1',   cca:438,  ah:35,  l:196,w:131,h:192, kg:11.4, ord:1},\n {n:'FT450',      cca:450,  ah:30,  l:250,w:97, h:156, kg:10.6, ord:1},\n {n:'FT500',      cca:500,  ah:40,  l:250,w:97, h:206, kg:14.0, ord:1},\n {n:'FT560',      cca:560,  ah:44,  l:198,w:166,h:180, kg:15.1, id:3785},\n {n:'FT610-47',   cca:610,  ah:50,  l:241,w:175,h:190, kg:19.1, ord:1},\n {n:'FT620-51',   cca:620,  ah:55,  l:229,w:138,h:230, kg:18.3, ord:1},\n {n:'FT680-48',   cca:680,  ah:60,  l:278,w:175,h:190, kg:21.7, ord:1},\n {n:'FT700',      cca:700,  ah:60,  l:220,w:121,h:261, kg:20.5, ord:1},\n {n:'FT750-25',   cca:750,  ah:64,  l:240,w:174,h:220, kg:21.8, ord:1},\n {n:'FT825-34',   cca:825,  ah:65,  l:261,w:172,h:208, kg:20.9, id:3787},\n {n:'FT840-24F',  cca:840,  ah:75,  l:276,w:172,h:227, kg:24.5, ord:1},\n {n:'FT850-94R',  cca:850,  ah:85,  l:314,w:174,h:190, kg:25.3, ord:1},\n {n:'FT890-49',   cca:890,  ah:80,  l:353,w:175,h:190, kg:27.4, ord:1},\n {n:'FT900-93',   cca:900,  ah:70,  l:351,w:167,h:179, kg:24.8, ord:1},\n {n:'FT930-65',   cca:930,  ah:75,  l:300,w:182,h:184, kg:24.5, id:3789},\n {n:'FT965-27',   cca:965,  ah:100, l:307,w:169,h:237, kg:31.5, ord:1},\n {n:'FT1050-30H', cca:1050, ah:105, l:328,w:172,h:220, kg:34.0, ord:1},\n {n:'FT1100-31',  cca:1100, ah:110, l:330,w:173,h:237, kg:34.1, id:3793},\n {n:'FT1150-6T',  cca:1150, ah:120, l:280,w:265,h:225, kg:38.9, ord:1},\n {n:'FT1210',     cca:1210, ah:140, l:327,w:182,h:273, kg:44.5, ord:1},\n {n:'FT1250-4DLT',cca:1250, ah:175, l:513,w:223,h:222, kg:56.0, ord:1},\n {n:'FT1450-8D',  cca:1450, ah:225, l:517,w:274,h:243, kg:73.1, ord:1}\n];\nfunction dmTab(t){\n  document.getElementById('pane-box').style.display = t==='box'?'block':'none';\n  document.getElementById('pane-load').style.display = t==='load'?'block':'none';\n  document.getElementById('tab-box').className = t==='box'?'on':'';\n  document.getElementById('tab-load').className = t==='load'?'on':'';\n  document.getElementById('bk-result').style.display='none';\n}\ndocument.getElementById('bx-use').addEventListener('change',function(){\n  document.getElementById('bx-cca-wrap').style.display = this.value==='ft'?'block':'none';\n  var v=document.getElementById('bx-v');\n  if(this.value==='egl'){ v.innerHTML='<option value=\"36\" selected>36 V pack<\/option><option value=\"48\">48 V pack<\/option>'; }\n  else if(v.options[0].value!=='12'){ v.innerHTML='<option value=\"12\" selected>12 V<\/option><option value=\"24\">24 V<\/option>'; }\n});\nfunction dmFitCount(m,L,W,H){\n  if(m.h+10>H) return null;\n  var ax=Math.floor(L\/(m.l+6)), ay=Math.floor(W\/(m.w+6));\n  var bx=Math.floor(L\/(m.w+6)), by=Math.floor(W\/(m.l+6));\n  var a=ax*ay, b=bx*by;\n  var best = a>=b ? {c:a,o:'lengthways',nx:ax,ny:ay,bl:m.l,bw:m.w} : {c:b,o:'turned 90\u00b0',nx:bx,ny:by,bl:m.w,bw:m.l};\n  best.grid = best.nx+' \u00d7 '+best.ny;\n  return best.c>0?best:null;\n}\n\/* Draw the winning layout: top view to scale + wiring overlay.\n   mode: 'parallel' (12V DC), 'pairs' (24V DC series pairs), 'series' (EGL pack \/ FT 24V), 'single'.\n   noDims: schematic row (loads tab) \u2014 hide box dims. *\/\nfunction dmDrawBox(L,W,m,f,n,mode,V,capExtra,noDims){\n  var el=document.getElementById('bk-diagram');\n  if(!el){return;}\n  if(!m||!f||n<1){el.style.display='none';el.innerHTML='';return;}\n  var fs=Math.max(17,Math.round(Math.max(L,W)*0.035));\n  var padT=fs*3.3, padB=noDims?fs*1.2:fs*3.1, padL=noDims?fs*1.2:fs*3.6, padR=fs*6.5;\n  var vw=L+padL+padR, vh=W+padT+padB;\n  var lw=fs*0.16, tr=fs*0.44;\n  var s='<svg viewBox=\"0 0 '+vw+' '+vh+'\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" role=\"img\" aria-label=\"Battery layout diagram\" font-family=\"Helvetica, Arial, sans-serif\">';\n  s+='<rect x=\"'+padL+'\" y=\"'+padT+'\" width=\"'+L+'\" height=\"'+W+'\" fill=\"#fbfdff\" stroke=\"#12395e\" stroke-width=\"'+fs*0.14+'\"'+(noDims?' stroke-dasharray=\"'+fs*0.8+' '+fs*0.5+'\" ':'')+' rx=\"'+fs*0.3+'\"\/>';\n  if(!noDims){\n    var dy=padT+W+fs*1.4;\n    s+='<line x1=\"'+padL+'\" y1=\"'+dy+'\" x2=\"'+(padL+L)+'\" y2=\"'+dy+'\" stroke=\"#8aa2b5\" stroke-width=\"'+fs*0.08+'\"\/>';\n    s+='<line x1=\"'+padL+'\" y1=\"'+(dy-fs*0.5)+'\" x2=\"'+padL+'\" y2=\"'+(dy+fs*0.5)+'\" stroke=\"#8aa2b5\" stroke-width=\"'+fs*0.08+'\"\/>';\n    s+='<line x1=\"'+(padL+L)+'\" y1=\"'+(dy-fs*0.5)+'\" x2=\"'+(padL+L)+'\" y2=\"'+(dy+fs*0.5)+'\" stroke=\"#8aa2b5\" stroke-width=\"'+fs*0.08+'\"\/>';\n    s+='<text x=\"'+(padL+L\/2)+'\" y=\"'+(dy+fs*1.25)+'\" text-anchor=\"middle\" font-size=\"'+fs+'\" fill=\"#41586e\">'+L+' mm<\/text>';\n    var dx=padL-fs*1.4;\n    s+='<line x1=\"'+dx+'\" y1=\"'+padT+'\" x2=\"'+dx+'\" y2=\"'+(padT+W)+'\" stroke=\"#8aa2b5\" stroke-width=\"'+fs*0.08+'\"\/>';\n    s+='<text x=\"'+(dx-fs*0.45)+'\" y=\"'+(padT+W\/2)+'\" text-anchor=\"middle\" font-size=\"'+fs+'\" fill=\"#41586e\" transform=\"rotate(-90 '+(dx-fs*0.45)+' '+(padT+W\/2)+')\">'+W+' mm<\/text>';\n  }\n  var pts=[];\n  for(var k=0;k<n &#038;&#038; k<f.nx*f.ny;k++){\n    var r=Math.floor(k\/f.nx), c=k%f.nx;\n    var x=padL+6+c*(f.bl+6), y=padT+6+r*(f.bw+6);\n    s+='<rect x=\"'+x+'\" y=\"'+y+'\" width=\"'+f.bl+'\" height=\"'+f.bw+'\" rx=\"'+fs*0.35+'\" fill=\"#dce8f2\" stroke=\"#2c4a66\" stroke-width=\"'+fs*0.09+'\"\/>';\n    s+='<text x=\"'+(x+f.bl\/2)+'\" y=\"'+(y+f.bw*0.72)+'\" text-anchor=\"middle\" font-size=\"'+Math.min(fs*0.92,f.bl\/(m.n.length*0.62))+'\" font-weight=\"700\" fill=\"#2c4a66\">'+m.n+'<\/text>';\n    \/\/ series strings: flip terminals on alternate rows so jumpers stay short (installers flip batteries too)\n    var flip = (mode==='series') && (r%2===1);\n    var ty1=y+f.bw*0.2, ty2=y+f.bw*0.42;\n    var px=x+f.bl*(flip?0.84:0.16), mx=x+f.bl*(flip?0.16:0.84);\n    pts.push({px:px,ty1:ty1,mx:mx,ty2:ty2,x:x,y:y,r:r,c:c});\n  }\n  n=pts.length;\n  function ln(x1,y1,x2,y2,col){return '<line x1=\"'+x1+'\" y1=\"'+y1+'\" x2=\"'+x2+'\" y2=\"'+y2+'\" stroke=\"'+col+'\" stroke-width=\"'+lw+'\" stroke-linecap=\"round\"\/>';}\n  \/\/ wiring order: serpentine chain for series strings AND parallel banks \u2014\n  \/\/ power must feed through every battery on its way to the output terminals\n  var ord=pts.slice();\n  if((mode==='series'||mode==='parallel')&&f.nx>0){\n    ord=[];\n    for(var rr=0;rr<f.ny;rr++){\n      var row=pts.filter(function(q){return q.r===rr;});\n      if(rr%2===1)row.reverse();\n      ord=ord.concat(row);\n    }\n    ord=ord.slice(0,n);\n  }\n  var wir='',i;\n  if(mode==='series'){\n    for(i=0;i<n-1;i++){wir+=ln(ord[i].mx,ord[i].ty2,ord[i+1].px,ord[i+1].ty1,'#e08e00');}\n  } else if(mode==='pairs'){\n    for(var p=0;p<Math.floor(n\/2);p++){\n      var A=pts[2*p],B=pts[2*p+1];\n      wir+=ln(A.mx,A.ty2,B.px,B.ty1,'#e08e00');\n      if(p>0){var PA=pts[2*p-2],PB=pts[2*p-1];\n        wir+=ln(PA.px,PA.ty1,A.px,A.ty1,'#c0392b');\n        wir+=ln(PB.mx,PB.ty2,B.mx,B.ty2,'#222');}\n    }\n  } else if(mode==='parallel'&&n>1){\n    \/\/ daisy chain both polarities battery to battery along the serpentine \u2014\n    \/\/ every battery sits in the current path between the two feed take-offs\n    for(i=0;i<n-1;i++){\n      wir+=ln(ord[i].px,ord[i].ty1,ord[i+1].px,ord[i+1].ty1,'#c0392b');\n      wir+=ln(ord[i].mx,ord[i].ty2,ord[i+1].mx,ord[i+1].ty2,'#222');\n    }\n  }\n  s+=wir;\n  \/\/ terminals on top of wiring\n  for(i=0;i<n;i++){\n    s+='<circle cx=\"'+pts[i].px+'\" cy=\"'+pts[i].ty1+'\" r=\"'+tr+'\" fill=\"#c0392b\"\/><text x=\"'+pts[i].px+'\" y=\"'+(pts[i].ty1+fs*0.26)+'\" text-anchor=\"middle\" font-size=\"'+fs*0.72+'\" font-weight=\"800\" fill=\"#fff\">+<\/text>';\n    s+='<circle cx=\"'+pts[i].mx+'\" cy=\"'+pts[i].ty2+'\" r=\"'+tr+'\" fill=\"#222\"\/><text x=\"'+pts[i].mx+'\" y=\"'+(pts[i].ty2+fs*0.26)+'\" text-anchor=\"middle\" font-size=\"'+fs*0.72+'\" font-weight=\"800\" fill=\"#fff\">&#8722;<\/text>';\n  }\n  \/\/ take-offs: + from the FIRST battery in the chain, \u2212 from the LAST \u2014 power feeds\n  \/\/ through every battery between the two output terminals\n  var f0 = (mode==='series'||mode==='parallel')?ord[0]:pts[0];\n  var fN = (mode==='series'||mode==='parallel')?ord[n-1]:pts[n-1];\n  var plusLab = mode==='series'?'pack + feed':'+ feed &rarr; switch &amp; fuse';\n  var minusLab = mode==='series'?'pack &#8722; feed':'&#8722; feed';\n  s+='<path d=\"M '+f0.px+' '+(f0.ty1-tr)+' L '+f0.px+' '+(padT-fs*0.9)+'\" stroke=\"#c0392b\" stroke-width=\"'+lw*1.25+'\" fill=\"none\" stroke-linecap=\"round\"\/>';\n  s+='<text x=\"'+(f0.px+fs*0.5)+'\" y=\"'+(padT-fs*1.35)+'\" font-size=\"'+fs*0.92+'\" font-weight=\"700\" fill=\"#c0392b\">'+plusLab+'<\/text>';\n  if(fN.c===f.nx-1||n<2){\n    \/\/ chain ends at the right-hand column \u2014 exit right\n    s+='<path d=\"M '+(fN.mx+tr)+' '+fN.ty2+' L '+(padL+L+fs*0.9)+' '+fN.ty2+'\" stroke=\"#222\" stroke-width=\"'+lw*1.25+'\" fill=\"none\" stroke-linecap=\"round\"\/>';\n    s+='<text x=\"'+(padL+L+fs*1.2)+'\" y=\"'+(fN.ty2+fs*0.3)+'\" font-size=\"'+fs*0.92+'\" font-weight=\"700\" fill=\"#222\">'+minusLab+'<\/text>';\n  }else{\n    \/\/ chain ends mid-box \u2014 run the \u2212 feed down and out under the box so it clearly\n    \/\/ leaves from the last battery, not through its neighbours\n    var ey=padT+W+fs*0.9;\n    s+='<path d=\"M '+fN.mx+' '+(fN.ty2+tr)+' L '+fN.mx+' '+ey+'\" stroke=\"#222\" stroke-width=\"'+lw*1.25+'\" fill=\"none\" stroke-linecap=\"round\"\/>';\n    s+='<text x=\"'+(fN.mx+fs*0.5)+'\" y=\"'+(ey+fs*0.35)+'\" font-size=\"'+fs*0.92+'\" font-weight=\"700\" fill=\"#222\">'+minusLab+'<\/text>';\n  }\n  s+='<\/svg>';\n  var capBase = noDims\n    ? 'Wiring layout \u2014 arrange the row to suit your locker. '\n    : 'Top view of your box to scale \u2014 6 mm between batteries, 10 mm clearance over the terminals ('+m.h+' mm tall + lid space). ';\n  var capWire = mode==='series' ? 'Orange = series jumpers: + to &minus; battery to battery; take the pack feeds from the two unused end terminals.'\n    : mode==='pairs' ? 'Orange = series jumpers making 24 V pairs; red \/ black = the pairs joined in parallel. Feeds come from opposite corners of the bank so every pair works equally hard.'\n    : mode==='parallel' ? 'Red daisy-chains + to + through every battery, black does the same &minus; to &minus;. The + feed comes off the first battery in the chain and the &minus; feed off the last, so the power path runs through all of them \u2014 the method from <a href=\"\/how-to-connect-multiple-batteries-in-parallel\/\" style=\"color:#0b76c4;font-weight:700\">our wiring guide<\/a> that makes every battery share the work evenly. Keep interconnects short, fat and identical in length pair-to-pair.'\n    : 'Single battery \u2014 + feed to the switch and fuse, &minus; feed to the engine block \/ busbar.';\n  window.__dmSvg=s;\n  window.__dmCap=(capBase+capWire+(capExtra||'')).replace(\/<[^>]+>\/g,'').replace(\/&minus;\/g,'-').replace(\/&mdash;\/g,'--').replace(\/&amp;\/g,'&');\n  window.__dmBank=n+' x '+m.n+' at '+(mode==='series'&&m.volt? (n*m.volt)+' V pack':'12\/24 V per selection');\n  el.innerHTML=s+'<\/p>\n<p class=\"cap\">'+capBase+capWire+(capExtra||'')+'<\/p>\n<p>'\n    +'<button class=\"dl\" type=\"button\" onclick=\"dmDlDiagram()\">&#8681; Download this diagram (PNG)<\/button>'\n    +'<span class=\"cap\" style=\"display:inline-block;margin-left:10px\">Print it, tape it inside the locker lid, hand it to the installer.<\/span>';\n  el.style.display='block';\n}\n\/* Compose the current diagram + wiring notes + parts list into a downloadable PNG install sheet. *\/\nfunction dmDlDiagram(){\n  var svg=window.__dmSvg; if(!svg)return;\n  var vb=svg.match(\/viewBox=\"0 0 ([\\d.]+) ([\\d.]+)\"\/); if(!vb)return;\n  var vw=parseFloat(vb[1]), vh=parseFloat(vb[2]);\n  \/\/ blob SVGs need explicit pixel size for canvas drawImage\n  svg=svg.replace('<svg ','<svg width=\"'+Math.round(vw)+'\" height=\"'+Math.round(vh)+'\" ');\n  \/\/ standalone XML only knows the five core entities \u2014 swap HTML names for numeric\n  var ENT={'&rarr;':'&#8594;','&larr;':'&#8592;','&minus;':'&#8722;','&mdash;':'&#8212;','&ndash;':'&#8211;','&hellip;':'&#8230;','&asymp;':'&#8776;','&times;':'&#215;','&middot;':'&#183;','&sup2;':'&#178;','&sup3;':'&#179;','&deg;':'&#176;','&prime;':'&#8242;','&Prime;':'&#8243;','&Omega;':'&#937;','&frac14;':'&#188;','&frac12;':'&#189;','&nbsp;':'&#160;'};\n  svg=svg.replace(\/&#038;[a-zA-Z]+\\d*;\/g,function(e){if(e==='&amp;'||e==='&lt;'||e==='&gt;'||e==='&quot;'||e==='&apos;')return e;return ENT[e]||'';});\n  var CW=1500, M=60, innerW=CW-2*M;\n  var svgH=Math.round(vh*innerW\/vw);\n  function wrap(t,max){var out=[],line='';t.split(' ').forEach(function(w){if((line+' '+w).length>max){out.push(line);line=w;}else{line=line?line+' '+w:w;}});if(line)out.push(line);return out;}\n  var capLines=wrap(window.__dmCap||'',118);\n  var partLines=(window.__dmPartsTxt||'').split('\\n').filter(function(l){return l&&l.indexOf('drakemarine.com')<0&#038;&#038;l.indexOf('Boat:')<0&#038;&#038;l.indexOf('Please quote')<0;});\n  var commLines=[];(window.__dmCommTxt||[]).forEach(function(l){commLines=commLines.concat(wrap(l,116));});\n  var lineH=30, headH=150, gap=30;\n  var textH=(capLines.length+partLines.length+(partLines.length?2:0)+commLines.length+(commLines.length?2:0)+2)*lineH+gap;\n  var CH=headH+svgH+textH+90;\n  var cv=document.createElement('canvas');cv.width=CW;cv.height=CH;\n  var ctx=cv.getContext('2d');\n  ctx.fillStyle='#ffffff';ctx.fillRect(0,0,CW,CH);\n  ctx.fillStyle='#12395e';ctx.fillRect(0,0,CW,96);\n  ctx.fillStyle='#ffffff';ctx.font='800 34px Helvetica, Arial, sans-serif';\n  ctx.fillText('Battery bank installation plan',M,58);\n  ctx.fillStyle='#8fd4ff';ctx.font='700 22px Helvetica, Arial, sans-serif';\n  ctx.textAlign='right';ctx.fillText('drakemarine.com',CW-M,58);ctx.textAlign='left';\n  ctx.fillStyle='#41586e';ctx.font='700 24px Helvetica, Arial, sans-serif';\n  ctx.fillText((document.getElementById('bk-sum').innerText||'').split('\u2192')[0].trim().slice(0,110),M,headH-18);\n  var img=new Image();\n  var blob=new Blob([svg],{type:'image\/svg+xml'});\n  var url=URL.createObjectURL(blob);\n  img.onload=function(){\n    ctx.drawImage(img,M,headH,innerW,svgH);\n    var y=headH+svgH+gap;\n    ctx.font='400 22px Helvetica, Arial, sans-serif';ctx.fillStyle='#41586e';\n    capLines.forEach(function(l){ctx.fillText(l,M,y);y+=lineH;});\n    if(partLines.length){\n      y+=lineH*0.5;\n      ctx.font='800 24px Helvetica, Arial, sans-serif';ctx.fillStyle='#12395e';\n      ctx.fillText('Parts list',M,y);y+=lineH*1.2;\n      ctx.font='400 22px Helvetica, Arial, sans-serif';ctx.fillStyle='#41586e';\n      partLines.forEach(function(l){wrap(l,118).forEach(function(w){ctx.fillText(w,M,y);y+=lineH;});});\n    }\n    if(commLines.length){\n      y+=lineH*0.5;\n      ctx.font='800 24px Helvetica, Arial, sans-serif';ctx.fillStyle='#12395e';\n      ctx.fillText('Commissioning',M,y);y+=lineH*1.2;\n      ctx.font='400 22px Helvetica, Arial, sans-serif';ctx.fillStyle='#41586e';\n      commLines.forEach(function(l){ctx.fillText(l,M,y);y+=lineH;});\n    }\n    y+=lineH*0.6;\n    ctx.font='700 22px Helvetica, Arial, sans-serif';ctx.fillStyle='#12395e';\n    var today=new Date();\n    ctx.fillText('Order no: ____________________     Date: '+today.getFullYear()+'-'+String(today.getMonth()+1).padStart(2,'0')+'-'+String(today.getDate()).padStart(2,'0'),M,y);y+=lineH;\n    if(window.__dmCfgUrl){\n      ctx.font='400 20px Helvetica, Arial, sans-serif';ctx.fillStyle='#0b76c4';\n      ctx.fillText('Reopen or edit this plan: drakemarine.com'+window.__dmCfgUrl,M,y);\n    }\n    ctx.fillStyle='#5b7186';ctx.font='400 19px Helvetica, Arial, sans-serif';\n    ctx.fillText('Checked by a Drake Marine engineer before dispatch on every order \u00b7 hello@drakemarine.com',M,CH-34);\n    URL.revokeObjectURL(url);\n    var a=document.createElement('a');\n    a.download='drake-marine-battery-bank-plan.png';\n    a.href=cv.toDataURL('image\/png');\n    document.body.appendChild(a);a.click();document.body.removeChild(a);\n  };\n  img.src=url;\n}\nfunction dmOrderCell(m,qty){\n  \/\/ dm_plan rides along on the cart link and is written onto the order line server-side,\n  \/\/ so every order arrives with the customer's exact configuration attached\n  var plan=window.__dmPlanStr?'&#038;dm_plan='+encodeURIComponent(window.__dmPlanStr.slice(0,140)):'';\n  var cfg=window.__dmCfgUrl?'&#038;dm_cfg='+encodeURIComponent(window.__dmCfgUrl):'';\n  if(m.id){return '<a class=\"cart\" href=\"\/cart\/?add-to-cart='+m.id+'&#038;quantity='+qty+plan+cfg+'\">Add '+qty+' to basket<\/a>';}\n  if(m.pg){return '<a class=\"view\" href=\"'+m.pg+'\">View &amp; order<\/a>';}\n  return '<a class=\"view\" href=\"\/contact-us\/\">Request a quote<\/a>';\n}\n\/* Interconnect spec + parts list: link cable size, busbar alternative, lengths, lugs.\n   Lengths come from the actual layout (centre distance + crimp\/slack allowance), rounded up. *\/\nfunction dmLinkParts(m,f,n,mode,V,bankAh){\n  var el=document.getElementById('bk-links');\n  if(!el)return;\n  if(!m||!f||n<2){el.style.display='none';el.innerHTML='';window.__dmPartsTxt='';window.__dmCommTxt=[];return;}\n  var inv=parseFloat(document.getElementById('bk-inv').value)||0;\n  var invA=inv>0?Math.ceil(inv*12\/(11*V)):0;\n  var amps, basis;\n  if(mode==='series'&&m.volt){amps=120;basis='typical buggy controller draw (~120 A continuous)';}\n  else if(mode==='series'){amps=250;basis='engine cranking current \u2014 links must match your engine cables';}\n  else{amps=Math.max(invA,Math.ceil(Math.min(0.3*bankAh,250)),100);basis=invA>=amps?'your '+inv+' W inverter at '+V+' V':'up to ~30% of bank capacity as continuous draw';}\n  var CAB=[{s:35,a:170},{s:50,a:225},{s:70,a:285},{s:95,a:330},{s:120,a:400}];\n  var cab=null;for(var ci=0;ci<CAB.length;ci++){if(CAB[ci].a>=amps*1.1){cab=CAB[ci];break;}}\n  if(!cab)cab=CAB[CAB.length-1];\n  var BARS=[{nm:'15 &times; 3 mm',csa:45,a:110},{nm:'20 &times; 3 mm',csa:60,a:150},{nm:'20 &times; 5 mm',csa:100,a:240},{nm:'25 &times; 5 mm',csa:125,a:300},{nm:'30 &times; 5 mm',csa:150,a:350},{nm:'40 &times; 5 mm',csa:200,a:450}];\n  var bar=null;for(var bi=0;bi<BARS.length;bi++){if(BARS[bi].a>=amps*1.1){bar=BARS[bi];break;}}\n  if(!bar)bar=BARS[BARS.length-1];\n  \/\/ layout-driven counts and lengths \u2014 cables are never run drum-tight terminal to terminal:\n  \/\/ each link gets a working loop (~200-250 mm over the straight-line distance)\n  var pitch=f.bl+6;                                 \/\/ post-to-post centre distance, adjacent in row\n  var adjLen=Math.ceil((pitch+200)\/50)*50;\n  var rowLen=Math.ceil((f.bw+6+250)\/50)*50;\n  var pairLen=Math.ceil((2*pitch+250)\/50)*50;\n  var perRow=[],r;\n  for(r=0;r<f.ny;r++){var cnt=Math.min(f.nx,n-r*f.nx);if(cnt>0)perRow.push(cnt);}\n  var links=0,totalMM=0,barLinks=0,detail='';\n  if(mode==='parallel'){\n    var adj=0;perRow.forEach(function(c){adj+=2*(c-1);});\n    var trans=2*(perRow.length-1);\n    links=adj+trans;totalMM=adj*adjLen+trans*rowLen;barLinks=adj;\n    detail=adj+' links &times; '+adjLen+' mm'+(trans?' + '+trans+' row-to-row &times; '+rowLen+' mm':'');\n  }else if(mode==='pairs'){\n    var jump=n\/2, par=2*(n\/2-1);\n    links=jump+par;totalMM=jump*adjLen+par*pairLen;barLinks=jump;\n    detail=jump+' series jumpers &times; '+adjLen+' mm'+(par?' + '+par+' parallel links &times; '+pairLen+' mm':'');\n  }else{ \/\/ series string\n    var transS=perRow.length-1, adjS=n-1-transS;\n    links=n-1;totalMM=adjS*adjLen+transS*rowLen;barLinks=adjS;\n    detail=adjS+' jumpers &times; '+adjLen+' mm'+(transS?' + '+transS+' row-to-row &times; '+rowLen+' mm':'');\n  }\n  var totalM=Math.ceil(totalMM\/1000);               \/\/ buy whole metres\n  var barTotalM=Math.ceil(barLinks*pitch\/100)\/10;   \/\/ busbar runs direct post-to-post\n  var lugs=links*2;\n  var rowsHtml='<\/p>\n<table>\n<thead>\n<tr>\n<th>Item<\/th>\n<th>Spec<\/th>\n<th>Qty<\/th>\n<\/tr>\n<\/thead>\n<tbody>';\n  rowsHtml+='<\/p>\n<tr>\n<td><strong>Link cables (flexible)<\/strong><\/td>\n<td>'+cab.s+' mm&sup2; tinned marine battery cable<\/td>\n<td>'+totalM+' m (buy whole metres) &mdash; '+detail+', each with a working loop so nothing is strained<\/td>\n<\/tr>\n<p>';\n  rowsHtml+='<\/p>\n<tr>\n<td><strong>&hellip;or solid busbar links<\/strong><\/td>\n<td>Tinned copper bar '+bar.nm+' ('+bar.csa+' mm&sup2; CSA)<\/td>\n<td>'+barLinks+' straight links, cut direct post-to-post &asymp; '+barTotalM.toFixed(1)+' m of bar'+(links>barLinks?'; keep cable for the '+(links-barLinks)+' longer run'+(links-barLinks>1?'s':''):'')+'<\/td>\n<\/tr>\n<p>';\n  rowsHtml+='<\/p>\n<tr>\n<td><strong>Cable lugs<\/strong><\/td>\n<td>'+cab.s+' mm&sup2;, M8 stud, tinned copper (stud size confirmed per battery model at order)<\/td>\n<td>'+lugs+' ('+links+' cables &times; 2)<\/td>\n<\/tr>\n<p>';\n  var barCover=Math.max(50,Math.ceil((pitch-60)\/10)*10);\n  rowsHtml+='<\/p>\n<tr>\n<td><strong>Busbar insulation<\/strong><\/td>\n<td>Heavy-wall heat shrink sleeving over the bar between bolt holes &mdash; bare busbar across battery tops is a dropped-spanner short waiting to happen<\/td>\n<td>'+barLinks+' sections &times; ~'+barCover+' mm (if using busbar)<\/td>\n<\/tr>\n<p>';\n  var FUSES2=[100,125,150,175,200,225,250,300,350,400];\n  var mainFuse=null;for(var fi=0;fi<FUSES2.length;fi++){if(FUSES2[fi]>=amps*1.25){mainFuse=FUSES2[fi];break;}}\n  if(!mainFuse)mainFuse=FUSES2[FUSES2.length-1];\n  rowsHtml+='<\/p>\n<tr>\n<td><strong>Main fuse<\/strong><\/td>\n<td>Class T or MRBF, on the + feed at the battery end<\/td>\n<td>'+mainFuse+' A (confirm against your feed cable)<\/td>\n<\/tr>\n<p>';\n  rowsHtml+='<\/p>\n<tr>\n<td><strong>Finishing<\/strong><\/td>\n<td>Adhesive-lined heat shrink red\/black + terminal covers<\/td>\n<td>1 lug each end<\/td>\n<\/tr>\n<p>';\n  rowsHtml+='<\/tbody>\n<\/table>\n<p>';\n  \/\/ commissioning specs \u2014 bank voltage aware (V is pack voltage for EGL)\n  var cells=V\/2;\n  var absLo=(cells*2.4).toFixed(1), absHi=(cells*2.45).toFixed(1);\n  var fltLo=(cells*2.25).toFixed(1), fltHi=(cells*2.3).toFixed(1);\n  var commLines=[\n    'Terminal torque: 10\u201312 Nm (M8) \u2014 check the figure printed on the battery',\n    'AGM charge voltages at 25\u00b0C: absorption '+absLo+'\u2013'+absHi+' V \u00b7 float '+fltLo+'\u2013'+fltHi+' V \u00b7 temp-compensate in the tropics',\n    'Main fuse: '+mainFuse+' A class T \/ MRBF on the + feed, at the battery end'\n  ];\n  if(mode==='parallel'||mode==='pairs'){commLines.push('Charger: '+Math.round(bankAh*0.1)+'\u2013'+Math.round(bankAh*0.2)+' A output suits this '+bankAh+' Ah bank (10\u201320% of capacity)');}\n  else if(mode==='series'&&!m.volt){commLines.push('Charging is from the engine alternator \u2014 verify 14.2\u201314.8 V at the battery when running');}\n  else{commLines.push('Use a charger matched to the '+V+' V pack \u2014 golf chargers are voltage-specific');}\n  commLines.push('Grease terminals, label both ends of every cable, give the bank a full charge before first use');\n  window.__dmCommTxt=commLines;\n  var parts='Interconnect parts list from drakemarine.com\\n\\nBank: '+n+' x '+m.n+' at '+V+' V ('+mode+')\\nLink current basis: '+amps+' A\\nCable option: '+cab.s+' mm2 tinned, '+totalM+' m ('+detail.replace(\/&times;\/g,'x').replace(\/&mdash;\/g,'-')+', incl. working loops)\\nBusbar option: '+bar.nm.replace(\/&times;\/g,'x')+' tinned copper ('+bar.csa+' mm2 CSA), '+barLinks+' links direct post-to-post, ~'+barTotalM.toFixed(1)+' m, heat shrink sleeved between bolt holes ('+barLinks+' x ~'+barCover+' mm heavy-wall)\\nLugs: '+lugs+' x '+cab.s+' mm2 M8 (confirm stud)\\n\\nPlease quote made-up link cables: crimped, adhesive-sealed, labelled, ready to bolt on.\\nBoat: (name \/ model)';\n  window.__dmPartsTxt=parts+'\\nMain fuse: '+mainFuse+' A class T \/ MRBF on the + feed';\n  el.innerHTML='<\/p>\n<h3 style=\"margin:0 0 6px;font-size:1.02rem\">Link cables &amp; busbars for this bank<\/h3>\n<p>'\n    +'<\/p>\n<p class=\"cap\" style=\"margin:0 0 10px\">Interconnects carry the full bank current, so they\\'re sized here for <strong>'+amps+' A<\/strong> ('+basis+') &mdash; never thinner than your main feed. Cable links are cut with a working loop &mdash; never drum-tight between posts &mdash; while busbar links run direct.<\/p>\n<p>'\n    +rowsHtml\n    +'<\/p>\n<h3 style=\"margin:14px 0 4px;font-size:1.02rem\">Commissioning this bank<\/h3>\n<p>'\n    +'<\/p>\n<p class=\"cap\" style=\"margin:0 0 4px\">'+commLines.join('<br \/>')+'<\/p>\n<p>'\n    +'<\/p>\n<p class=\"cap\" style=\"margin:10px 2px 4px\"><strong>Don\\'t want to crimp '+cab.s+' mm&sup2; yourself?<\/strong> We\\'ll make the full link set for you &mdash; hydraulically crimped, adhesive-sealed, labelled, cut to these lengths &mdash; and ship it with the batteries. <a id=\"bk-linkmail\" style=\"color:#0b76c4;font-weight:700\" href=\"mailto:hello@drakemarine.com?subject=Made-up battery link cables&#038;body='+encodeURIComponent(parts)+'\">Email us this parts list<\/a> or <a href=\"\/product\/bep-flexible-rubber-sdi-tinned-battery-cable\/\" style=\"color:#0b76c4;font-weight:700\">buy the cable by the metre<\/a>. All of it &mdash; layout, links, fuse, commissioning specs &mdash; is on the downloadable plan above, and your configuration travels with your order automatically when you use the basket buttons.<\/p>\n<p>';\n  el.style.display='block';\n}\nfunction dmBoxFit(){\n  var L=parseFloat(document.getElementById('bx-l').value)||0, W=parseFloat(document.getElementById('bx-w').value)||0, H=parseFloat(document.getElementById('bx-h').value)||0;\n  var V=parseInt(document.getElementById('bx-v').value,10), use=document.getElementById('bx-use').value;\n  var rows=[], sum='', note='', bestM=null;\n  window.__dmCfgUrl='\/battery-bank-calculator\/?l='+L+'&w='+W+'&h='+H+'&v='+V+'&u='+use+(use==='ft'?'&cca='+document.getElementById('bx-cca').value:'');\n  document.getElementById('bk-title').textContent = use==='dc' ? 'The biggest banks that fit your box' : 'Starting batteries that fit your box';\n  if(use==='dc'){\n    var opts=[];\n    DM_DC.forEach(function(m){\n      var f=dmFitCount(m,L,W,H); if(!f) return;\n      var n=f.c;\n      if(V===24){ n=n-(n%2); }\n      if(n<1) return;\n      var strings = V===24 ? n\/2 : n;\n      var bankAh = strings*m.ah;\n      opts.push({m:m,n:n,f:f,bankAh:bankAh,kg:Math.round(n*m.kg)});\n    });\n    opts.sort(function(a,b){return b.bankAh-a.bankAh || a.n-b.n;});\n    opts=opts.slice(0,4);\n    opts.forEach(function(o,i){\n      window.__dmPlanStr=o.n+'x '+o.m.n+' '+V+'V '+(V===24?'series-pairs':'parallel')+' | box '+L+'x'+W+'x'+H+'mm | from box-fit calculator';\n      rows.push(['<strong>'+(i===0?'Biggest bank':'Option '+(i+1))+'<\/strong>', o.n+' \u00d7 '+o.m.n, o.f.grid+' '+o.f.o, o.bankAh+' Ah @ '+V+' V', o.kg+' kg', dmOrderCell(o.m,o.n)]);\n    });\n    if(opts.length){window.__dmPlanStr=opts[0].n+'x '+opts[0].m.n+' '+V+'V '+(V===24?'series-pairs':'parallel')+' | box '+L+'x'+W+'x'+H+'mm';}\n    sum = opts.length\n      ? 'Box '+L+' \u00d7 '+W+' \u00d7 '+H+' mm at '+V+' V &rarr; best fit is <strong>'+opts[0].n+' \u00d7 '+opts[0].m.n+' = '+opts[0].bankAh+' Ah<\/strong>. Allowances: 6 mm between batteries, 10 mm above terminals.'\n      : 'Nothing in the DC range fits those dimensions \u2014 check the numbers are internal sizes in millimetres, or <a href=\"\/contact-us\/\" style=\"font-weight:700;color:#0b76c4\">talk to us<\/a> about a custom layout.';\n    if(opts.length){var o0=opts[0];bestM=o0.m;dmDrawBox(L,W,o0.m,o0.f,o0.n,V===24?'pairs':(o0.n>1?'parallel':'single'),V);dmLinkParts(o0.m,o0.f,o0.n,V===24?'pairs':'parallel',V,o0.bankAh);}\n    else{dmDrawBox(0,0,null,null,0);dmLinkParts(null,null,0);}\n    note='Fit assumes flat installation with batteries upright and strapping space at the ends. '+(V===24?'24 V banks use identical batteries in series pairs \u2014 quantities are kept even. ':'')+'Wiring three or more? Read <a href=\"\/how-to-connect-multiple-batteries-in-parallel\/\" style=\"color:#0b76c4;font-weight:700\">the parallel wiring guide<\/a> \u2014 layout decides how long the bank lives. Every order is checked by an engineer against your box before dispatch.';\n  } else if(use==='egl'){\n    var packs=[];\n    DM_EGL.forEach(function(m){\n      if(V%m.volt!==0) return;\n      var need=V\/m.volt;\n      var f=dmFitCount(m,L,W,H); if(!f||f.c<need) return;\n      packs.push({m:m,n:need,f:f,ah:m.ah,kg:Math.round(need*m.kg)});\n    });\n    packs.sort(function(a,b){return b.ah-a.ah;});\n    packs.forEach(function(o,i){\n      rows.push(['<strong>'+(i===0?'Best pack':'Option '+(i+1))+'<\/strong>', o.n+' \u00d7 '+o.m.n, o.f.grid+' '+o.f.o, o.ah+' Ah @ '+V+' V', o.kg+' kg', '<a class=\"view\" href=\"'+DM_EGL_PG+'\">View &amp; order<\/a>']);\n    });\n    sum = packs.length\n      ? 'Buggy tray '+L+' \u00d7 '+W+' \u00d7 '+H+' mm at '+V+' V &rarr; best pack: <strong>'+packs[0].n+' \u00d7 '+packs[0].m.n+' = '+packs[0].ah+' Ah<\/strong>. Supreme EGL \u2014 the heavy-duty deep cycle AGM built for daily electric-vehicle cycling.'\n      : 'A full '+V+' V EGL pack doesn\\'t fit those dimensions \u2014 check the tray measurements, or <a href=\"\/contact-us\/\" style=\"font-weight:700;color:#0b76c4\">send us the buggy model<\/a> and we\\'ll spec it from the maker\\'s layout.';\n    note='EGL packs use identical batteries in series \u2014 quantities are fixed by pack voltage ('+(V===36?'six 6 V':'eight 6 V or six 8 V')+' units). We confirm tray fit and cabling against your buggy model before dispatch.';\n    document.getElementById('bk-title').textContent='EGL packs that fit your buggy';\n    if(packs.length){var p0=packs[0];bestM=p0.m;dmDrawBox(L,W,p0.m,p0.f,p0.n,'series',V);dmLinkParts(p0.m,p0.f,p0.n,'series',V,p0.ah);}\n    else{dmDrawBox(0,0,null,null,0);dmLinkParts(null,null,0);}\n  } else {\n    var ccaSelEl=document.getElementById('bx-cca');\n    var ccaSel=ccaSelEl?ccaSelEl.value:'550';\n    var ccaCustEl=document.getElementById('bx-cca-custom');\n    var cca=(ccaSel==='custom')?(parseInt(ccaCustEl&&ccaCustEl.value,10)||0):(parseInt(ccaSel,10)||0);\n    if(!cca||cca<50){cca=550;}\n    if(cca>4000){cca=4000;}\n    var ser=(V===24)?2:1;\n    var fits=DM_FT.filter(function(m){var f=dmFitCount(m,L,W,H);return f&&f.c>=ser;});\n    var meet=fits.filter(function(m){return m.cca>=cca;});\n    var pick=[],pickN=[],nStr=1,shortfall=0,bigNote='';\n    var MAXSTR=6;\n    var sols=[],shorts=[];\n    DM_FT.forEach(function(m){\n      var f=dmFitCount(m,L,W,H); if(!f) return;\n      var room=Math.floor(f.c\/ser); if(room<1) return;\n      var need=Math.ceil(cca\/m.cca);\n      var o={m:m,f:f,stk:m.id?1:0};\n      if(need<=Math.min(room,MAXSTR)){\n        o.n=need; o.tot=m.cca*need; o.kg=Math.round(m.kg*need*ser); sols.push(o);\n      } else {\n        var r=Math.min(room,MAXSTR);\n        o.n=r; o.tot=m.cca*r; o.kg=Math.round(m.kg*r*ser); shorts.push(o);\n      }\n    });\n    var byPref=function(a,b){\n      if(a.n!==b.n) return a.n-b.n;\n      if(a.tot!==b.tot) return a.tot-b.tot;\n      return a.kg-b.kg;\n    };\n    var preferStocked=function(list,band){\n      if(!list.length||list[0].stk) return list;\n      var n0=list[0].n,t0=list[0].tot;\n      var s=list.filter(function(o){return o.stk&#038;&#038;o.n<=n0&#038;&#038;o.tot<=t0*band;})[0];\n      if(!s) return list;\n      return [s].concat(list.filter(function(o){return o!==s;}));\n    };\n    if(sols.length){\n      sols.sort(byPref);\n      sols=preferStocked(sols,1.25);\n      var p0=sols[0];\n      pick=[p0.m]; pickN=[p0.n]; nStr=p0.n;\n      var up=sols.filter(function(o){return o.tot>p0.tot*1.05&&o.m.n!==p0.m.n;}).sort(byPref);\n      up=preferStocked(up,1.4);\n      if(up.length){pick.push(up[0].m);pickN.push(up[0].n);}\n    } else if(shorts.length){\n      shorts.sort(function(a,b){\n        if(b.tot!==a.tot) return b.tot-a.tot;\n        if(a.n!==b.n) return a.n-b.n;\n        return b.stk-a.stk;\n      });\n      var s0=shorts[0];\n      pick=[s0.m]; pickN=[s0.n]; nStr=s0.n; shortfall=1;\n    }\n    document.getElementById('bk-title').textContent='Engine starting batteries that fit your box';\n    pick.forEach(function(m,i){\n      var ns=pickN[i]||1;\n      var q=ns*ser;\n      var lab=(i===0)?(shortfall?'Best that fits':'Recommended'):'Step up';\n      var ccaTxt=(ns>1)?((m.cca*ns)+' CCA nominal &mdash; '+ns+' in parallel'+(V===24?', each a series pair':'')):(m.cca+' CCA'+(V===24?' (series pair)':''));\n      if(i===0)window.__dmPlanStr=q+'x '+m.n+' '+V+'V engine start | box '+L+'x'+W+'x'+H+'mm';\n      rows.push(['<strong>'+lab+'<\/strong>', q+' &times; '+m.n+(m.ord?' <span style=\"opacity:.6;font-size:.85em\">(to order)<\/span>':''), m.l+'&times;'+m.w+'&times;'+m.h+' mm', ccaTxt, Math.round(m.kg*q)+' kg', dmOrderCell(m,q)]);\n    });\n    var CT='<a href=\"\/contact-us\/\" style=\"font-weight:700;color:#0b76c4\">';\n    var PARA=' <strong>About paralleled starting banks:<\/strong> Fullriver rate CCA per battery, not for a paralleled bank, so the combined figure above is nominal &mdash; real cranking output depends entirely on the interconnects. Cables must be equal length, cross-tied, and sized for the full cranking current, or one battery carries the load and fails early. Check the total against the figure your engine builder specifies.';\n    var BIGUNIT=' <strong>Above roughly 1100 CCA<\/strong> a single large-case battery is almost always the better engineering answer than paralleling group-31 units. The Full Throttle range runs up to the <strong>FT1450-8D at 1450 CCA<\/strong> (8D case), with the FT1250-4DLT at 1250 CCA (4D) and the FT1150-6T at 1150 CCA (6T) below it. Those large cases are supplied to order rather than held in stock, so '+CT+'ask us for a price and lead time<\/a>.';\n    if(!pick.length){\n      sum='Nothing in the Full Throttle starting range fits a battery box '+L+'&times;'+W+'&times;'+H+' mm. '+CT+'Tell us the engine and the space you have<\/a> and we will size it properly.';\n    } else if(shortfall){\n      sum='Engine needs &asymp; <strong>'+cca+' CCA<\/strong> at '+V+' V. <strong>Nothing in the Full Throttle range reaches that inside a box '+L+'&times;'+W+'&times;'+H+' mm.<\/strong> The most that fits is '+(nStr*ser)+' &times; '+pick[0].n+' &mdash; '+(pick[0].cca*nStr)+' CCA nominal, which is still short of what you asked for. '+CT+'Send us the engine details<\/a> and we will quote a larger unit or a bigger tray.';\n      bigNote=(nStr>1?PARA:'')+BIGUNIT;\n    } else if(nStr>1){\n      sum='Engine needs &asymp; <strong>'+cca+' CCA<\/strong> at '+V+' V. No single Full Throttle that fits a box this size reaches that, so this is <strong>'+(nStr*ser)+' &times; '+pick[0].n+'<\/strong> &mdash; '+nStr+' in parallel, <strong>'+(pick[0].cca*nStr)+' CCA nominal<\/strong>.';\n      bigNote=PARA+BIGUNIT;\n    } else {\n      sum='Engine needs &asymp; <strong>'+cca+' CCA<\/strong> at '+V+' V &rarr; recommended: <strong>'+pick[0].n+'<\/strong> at '+pick[0].cca+' CCA. High-cranking AGM &mdash; sealed, vibration-proof, air-freightable.';\n      if(pick[0].cca<Math.round(cca*1.25)){bigNote=' This model meets the figure you entered but sits inside 25% headroom &mdash; if the engine is a hard starter, or cranks cold and heavily loaded, step up a size.';}\n    }\n    note='Dimensions are the manufacturer&rsquo;s published figures &mdash; length &times; width &times; total height over the terminals &mdash; and we confirm exact fit against your tray before dispatch. Most models are also built in a mirrored-terminal version (identical case and rating, positive on the opposite side), so tell us which way your cables run. Diesel engines cold-start best with 25% or more CCA headroom.'+bigNote;\n    if(pick.length){\n      var ftm=pick[0],ftf=dmFitCount(ftm,L,W,H),ftq=nStr*ser;\n      bestM=ftm;\n      var fmode=(V===24)?(nStr>1?'pairs':'series'):(nStr>1?'parallel':'single');\n      if(ftf&&ftf.c>=ftq){dmDrawBox(L,W,ftm,ftf,ftq,fmode,V);dmLinkParts(ftm,ftf,ftq,fmode,V,ftm.ah*nStr);}else{dmDrawBox(0,0,null,null,0);dmLinkParts(null,null,0);}\n    }\n    else{dmDrawBox(0,0,null,null,0);dmLinkParts(null,null,0);}\n  }\n  var tb=document.getElementById('bk-rows');tb.innerHTML='';\n  rows.forEach(function(r){tb.innerHTML+='<\/p>\n<tr>\n<td>'+r.join('<\/td>\n<td>')+'<\/td>\n<\/tr>\n<p>';});\n  document.getElementById('bk-sum').innerHTML=(bestM&&DM_IMG[bestM.n]?'<img decoding=\"async\" class=\"prod\" src=\"'+DM_IMG[bestM.n]+'\" alt=\"Fullriver '+bestM.n+'\" loading=\"lazy\">':'')+sum+'<\/p>\n<div style=\"clear:both\"><\/div>\n<p>';\n  document.getElementById('bk-note').innerHTML=note;\n  dmCable();\n  var best = rows.length? rows[0][1].replace(\/<[^>]+>\/g,'') : 'none';\n  document.getElementById('bk-mail').href='mailto:hello@drakemarine.com?subject=Battery bank \u2014 box fit&body='+encodeURIComponent('Box fit from drakemarine.com\\n\\nBox: '+L+' x '+W+' x '+H+' mm\\nVoltage: '+V+' V\\nUse: '+(use==='dc'?'deep cycle':'engine start')+'\\nBest fit: '+best+'\\nBoat: (name \/ model)');\n  if(!rows.length){window.__dmPlanStr='';}\n  var res=document.getElementById('bk-result');res.style.display='block';res.scrollIntoView({behavior:'smooth',block:'start'});\n}\nfunction dmBankCalc(){\n  window.__dmCfgUrl='';\n  var daily=0;\n  document.querySelectorAll('#pane-load .checks input:checked').forEach(function(c){daily+=parseFloat(c.getAttribute('data-ah'));});\n  daily+=parseFloat(document.getElementById('bk-extra').value)||0;\n  var days=parseFloat(document.getElementById('bk-days').value)||1.5;\n  var bank=Math.ceil(daily*days\/0.5*1.1);\n  document.getElementById('bk-title').textContent='Your AGM house bank';\n  var opts=[];\n  DM_DC.forEach(function(m){\n    var n=Math.ceil(bank\/m.ah);\n    if(n>=1&&n<=4){var cap=n*m.ah; if(cap>=bank&&cap<=bank*1.45){opts.push({n:n,m:m,cap:cap});}}\n  });\n  opts.sort(function(a,b){return (a.cap-bank)-(b.cap-bank)||a.n-b.n;});\n  opts=opts.slice(0,3);\n  var tb=document.getElementById('bk-rows');tb.innerHTML='';\n  opts.forEach(function(o,i){\n    window.__dmPlanStr=o.n+'x '+o.m.n+' 12V parallel | sized from '+Math.round(daily)+' Ah\/day x '+days+' days';\n    tb.innerHTML+='\n\n<tr>\n<td><strong>'+(i===0?'Best fit':'Option '+(i+1))+'<\/strong><\/td>\n<td>'+o.n+' \u00d7 '+o.m.n+'<\/td>\n<td>'+o.m.l+'\u00d7'+o.m.w+'\u00d7'+o.m.h+' mm each<\/td>\n<td>'+o.cap+' Ah ('+Math.round(o.cap*0.5)+' usable)<\/td>\n<td>'+Math.round(o.n*o.m.kg)+' kg<\/td>\n<td>'+dmOrderCell(o.m,o.n)+'<\/td>\n<\/tr>\n<p>';\n  });\n  if(opts.length){window.__dmPlanStr=opts[0].n+'x '+opts[0].m.n+' 12V parallel | '+Math.round(daily)+' Ah\/day x '+days+' days';}\n  if(!opts.length){tb.innerHTML='<\/p>\n<tr>\n<td colspan=\"6\">That\\'s a big bank \u2014 <a href=\"\/contact-us\/\">talk to us<\/a> and we\\'ll design it properly.<\/td>\n<\/tr>\n<p>';}\n  if(opts.length){\n    var b0=opts[0];\n    var vL=b0.n*(b0.m.l+6)+6, vW=b0.m.w+12;\n    dmDrawBox(vL,vW,b0.m,{nx:b0.n,ny:1,bl:b0.m.l,bw:b0.m.w},b0.n,b0.n>1?'parallel':'single',12,'',true);\n    dmLinkParts(b0.m,{nx:b0.n,ny:1,bl:b0.m.l,bw:b0.m.w},b0.n,'parallel',12,b0.cap);\n  } else {dmDrawBox(0,0,null,null,0);dmLinkParts(null,null,0);}\n  document.getElementById('bk-sum').innerHTML=(opts.length&&DM_IMG[opts[0].m.n]?'<img decoding=\"async\" class=\"prod\" src=\"'+DM_IMG[opts[0].m.n]+'\" alt=\"Fullriver '+opts[0].m.n+'\" loading=\"lazy\">':'')+'Daily load &asymp; <strong>'+Math.round(daily)+' Ah<\/strong> \u00d7 '+days+' days autonomy &rarr; recommended AGM bank &asymp; <strong>'+bank+' Ah<\/strong> at 12 V.'+'<\/p>\n<div style=\"clear:both\"><\/div>\n<p>';\n  document.getElementById('bk-note').innerHTML='Sizing method: daily load \u00d7 autonomy \u00f7 50% usable (AGM) \u00d7 1.1 tropical heat margin. Wiring three or more in parallel? Read <a href=\"\/how-to-connect-multiple-batteries-in-parallel\/\" style=\"color:#0b76c4;font-weight:700\">our parallel wiring guide<\/a> first.';\n  dmCable();\n  if(!opts.length){window.__dmPlanStr='';}\n  var best=opts.length?opts[0].n+' x '+opts[0].m.n:'custom';\n  document.getElementById('bk-mail').href='mailto:hello@drakemarine.com?subject=Battery bank sizing \u2014 from the calculator&body='+encodeURIComponent('Bank sizing from drakemarine.com\\n\\nDaily load: '+Math.round(daily)+' Ah\\nAutonomy: '+days+' days\\nRecommended bank: '+bank+' Ah\\nBest fit: '+best+'\\nBoat: (name \/ model)');\n  var res=document.getElementById('bk-result');res.style.display='block';res.scrollIntoView({behavior:'smooth',block:'start'});\n}\n\/* Reopen-this-plan links: ?l=&w=&h=&v=&u=(&cca=) prefills the box tab and runs it. *\/\n(function(){\n  try{\n    var q=new URLSearchParams(location.search);\n    if(q.get('l')&&q.get('w')&&q.get('h')){\n      document.getElementById('bx-l').value=q.get('l');\n      document.getElementById('bx-w').value=q.get('w');\n      document.getElementById('bx-h').value=q.get('h');\n      if(q.get('u')){var u=document.getElementById('bx-use');u.value=q.get('u');u.dispatchEvent(new Event('change'));}\n      if(q.get('v'))document.getElementById('bx-v').value=q.get('v');\n      if(q.get('cca'))document.getElementById('bx-cca').value=q.get('cca');\n      dmBoxFit();\n    }\n  }catch(e){}\n})();\nfunction dmCable(){\n  var inv=parseFloat(document.getElementById('bk-inv').value)||0;\n  var run=parseFloat(document.getElementById('bk-run').value)||2;\n  var el=document.getElementById('bk-cable');\n  if(inv>0){\n    var amps=Math.ceil(inv\/11);\n    var mm2 = amps<=60?16 : amps<=90?25 : amps<=120?35 : amps<=150?50 : amps<=200?70 : 95;\n    if(run>3){mm2 = mm2>=95?120 : mm2>=70?95 : mm2>=50?70 : mm2>=35?50 : 35;}\n    el.innerHTML='Inverter draw &asymp; <strong>'+amps+' A<\/strong> at 12 V over '+run+' m &rarr; use &ge; <strong>'+mm2+' mm\u00b2 tinned battery cable<\/strong> with a properly rated main fuse. <a href=\"\/product\/bep-flexible-rubber-sdi-tinned-battery-cable\/\" style=\"color:#0b76c4;font-weight:700\">Shop battery cable by the metre<\/a>.';\n  } else {\n    el.innerHTML='No inverter \u2014 size cabling for your largest charge source, keep interconnects matched. <a href=\"\/product-category\/electrical\/marine-cable-wire\/\" style=\"color:#0b76c4;font-weight:700\">Cable &amp; wire range<\/a>.';\n  }\n}\n<\/script><\/p>\n<p>Once you know the size you need, see our full guide to <a href=\"https:\/\/drakemarine.com\/marine-batteries-thailand\/\" target=\"_blank\" rel=\"noopener\">marine batteries in Thailand<\/a> \u2014 what we hold in stock in Trang, how to make a set last in tropical heat, and AGM versus lithium for the way you actually use the boat.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Measure your battery box and we will work out the biggest genuine Fullriver bank that fits \u2014 drawn to scale with the wiring, link cables, busbars and fuses, ready to order with a downloadable installation plan. Fit my battery box Size by daily loads Measure the box, we&#8217;ll fill it Internal dimensions of your battery&#8230;<\/p>","protected":false},"author":9,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"_kad_post_classname":"","footnotes":""},"class_list":["post-8417","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.drakemarine.com\/fr\/wp-json\/wp\/v2\/pages\/8417","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.drakemarine.com\/fr\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.drakemarine.com\/fr\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.drakemarine.com\/fr\/wp-json\/wp\/v2\/users\/9"}],"replies":[{"embeddable":true,"href":"https:\/\/www.drakemarine.com\/fr\/wp-json\/wp\/v2\/comments?post=8417"}],"version-history":[{"count":0,"href":"https:\/\/www.drakemarine.com\/fr\/wp-json\/wp\/v2\/pages\/8417\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.drakemarine.com\/fr\/wp-json\/wp\/v2\/media?parent=8417"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}