{% extends "pages/base.html" %} {% load static i18n %} {% block title %}{% trans "AWG Cable Calculator" %}{% endblock %} {% block content %}

{% trans "Cable & Conduit Calculator" %}

{% include "awg/_calculator_nav.html" with active_calculator="cable" %}
{% csrf_token %}
{% if not result and not error and not no_cable %}
{% blocktrans trimmed %} This application will suggest a common correct sizing of cable, considering voltage drop and standard gauge sizes. Consult a professional electrician or your local electrical code before choosing the right cable for your electrical projects. {% endblocktrans %}
{% if templates %}

{% trans "Or try a pre-loaded template:" %}

    {% for t in templates %}
  • {{ t.name }} {% if t.description %}- {{ t.description }}{% endif %}
  • {% endfor %}
{% endif %} {% else %} {% if error %}

{% blocktrans %}Error: {{ error }}{% endblocktrans %}

{% elif no_cable %}

{% trans "No Suitable Cable Found" %}

{% blocktrans trimmed %}No cable was found that meets the requirements within a 3% voltage drop.
Try adjusting the cable size, amps, length, or material and try again.{% endblocktrans %}

{% elif result %}

{% trans "Calculator Results" %}

{% if result.conduit %} {% endif %}
{% trans "AWG Size" %}{{ result.awg_display }}
{% trans "Lines" %}{{ result.lines }}
{% trans "Total Cables" %}{{ result.cables }}
{% trans "Total Length (m)" %}{{ result.total_meters }}
{% trans "Voltage Drop" %}{{ result.vdrop|floatformat:2 }} V ({{ result.vdperc|floatformat:2 }}%)
{% trans "Voltage at End" %}{{ result.vend|floatformat:2 }} V
{% trans "Temperature Rating" %}{{ result.temperature }}C
{% trans "Conduit" %}{{ result.conduit_label }} {{ result.pipe_inch }}"
{% if result.warning %}

{{ result.warning }}

{% endif %}
{% endif %}
{% endif %}
{% endblock %}