Black Drum Weight Calculator & Guide
:root {
–primary-color: #004a99;
–success-color: #28a745;
–background-color: #f8f9fa;
–text-color: #333;
–border-color: #ddd;
–card-background: #fff;
–error-color: #dc3545;
}
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
line-height: 1.6;
color: var(–text-color);
background-color: var(–background-color);
margin: 0;
padding: 0;
display: flex;
flex-direction: column;
align-items: center;
padding: 20px 0;
}
.container {
width: 100%;
max-width: 1000px;
margin: 0 auto;
background-color: var(–card-background);
padding: 30px;
border-radius: 8px;
box-shadow: 0 4px 12px rgba(0, 0, 74, 0.08);
display: flex;
flex-direction: column;
gap: 30px;
}
h1, h2, h3 {
color: var(–primary-color);
margin-bottom: 15px;
}
h1 {
font-size: 2.5em;
text-align: center;
margin-bottom: 20px;
}
h2 {
font-size: 1.8em;
border-bottom: 2px solid var(–primary-color);
padding-bottom: 8px;
}
h3 {
font-size: 1.3em;
margin-top: 20px;
margin-bottom: 10px;
}
.calculator-wrapper {
background-color: var(–card-background);
padding: 30px;
border-radius: 8px;
box-shadow: 0 2px 8px rgba(0, 0, 74, 0.05);
display: flex;
flex-direction: column;
gap: 20px;
}
.input-group {
display: flex;
flex-direction: column;
gap: 8px;
margin-bottom: 15px;
}
.input-group label {
font-weight: bold;
color: var(–primary-color);
font-size: 0.95em;
}
.input-group input[type="number"],
.input-group select {
padding: 12px 15px;
border: 1px solid var(–border-color);
border-radius: 5px;
font-size: 1em;
transition: border-color 0.3s ease;
}
.input-group input[type="number"]:focus,
.input-group select:focus {
outline: none;
border-color: var(–primary-color);
box-shadow: 0 0 0 3px rgba(0, 74, 153, 0.2);
}
.input-group .helper-text {
font-size: 0.85em;
color: #6c757d;
margin-top: 5px;
}
.error-message {
color: var(–error-color);
font-size: 0.8em;
margin-top: 5px;
min-height: 1.2em; /* Prevent layout shift */
}
.button-group {
display: flex;
gap: 15px;
margin-top: 10px;
flex-wrap: wrap; /* Allow wrapping on smaller screens */
}
button {
padding: 12px 25px;
border: none;
border-radius: 5px;
font-size: 1em;
font-weight: bold;
cursor: pointer;
transition: background-color 0.3s ease, transform 0.2s ease;
white-space: nowrap; /* Prevent button text from breaking */
}
button.primary {
background-color: var(–primary-color);
color: white;
}
button.primary:hover {
background-color: #003366;
transform: translateY(-2px);
}
button.secondary {
background-color: #6c757d;
color: white;
}
button.secondary:hover {
background-color: #5a6268;
transform: translateY(-2px);
}
button.reset {
background-color: #ffc107;
color: #212529;
}
button.reset:hover {
background-color: #e0a800;
transform: translateY(-2px);
}
#result {
background-color: var(–success-color);
color: white;
padding: 20px;
border-radius: 5px;
text-align: center;
font-size: 1.5em;
font-weight: bold;
margin-top: 20px;
box-shadow: 0 4px 8px rgba(40, 167, 69, 0.3);
display: flex;
flex-direction: column;
gap: 10px;
}
#result .label {
font-size: 0.8em;
font-weight: normal;
opacity: 0.9;
}
.intermediate-results {
display: flex;
justify-content: space-around;
flex-wrap: wrap;
gap: 15px;
margin-top: 25px;
padding: 20px;
border: 1px dashed var(–border-color);
border-radius: 5px;
}
.intermediate-results .result-item {
text-align: center;
flex: 1;
min-width: 150px;
}
.intermediate-results .result-item .value {
font-size: 1.4em;
font-weight: bold;
color: var(–primary-color);
}
.intermediate-results .result-item .unit {
font-size: 0.9em;
color: #6c757d;
}
.formula-explanation {
background-color: #e9ecef;
padding: 15px;
border-radius: 5px;
font-size: 0.9em;
color: #495057;
margin-top: 20px;
}
table {
width: 100%;
border-collapse: collapse;
margin-top: 30px;
box-shadow: 0 2px 8px rgba(0, 0, 74, 0.05);
}
th, td {
padding: 12px 15px;
text-align: left;
border: 1px solid var(–border-color);
}
thead {
background-color: var(–primary-color);
color: white;
}
thead th {
font-weight: bold;
}
tbody tr:nth-child(even) {
background-color: #f8f9fa;
}
caption {
caption-side: bottom;
font-size: 0.85em;
color: #6c757d;
margin-top: 10px;
text-align: center;
}
.chart-container {
display: flex;
flex-direction: column;
align-items: center;
margin-top: 30px;
padding: 20px;
background-color: var(–card-background);
border-radius: 8px;
box-shadow: 0 2px 8px rgba(0, 0, 74, 0.05);
}
.chart-container canvas {
max-width: 100%;
height: auto;
}
.chart-container p {
margin-top: 15px;
font-size: 0.9em;
color: #495057;
}
.article-content {
margin-top: 30px;
background-color: var(–card-background);
padding: 30px;
border-radius: 8px;
box-shadow: 0 2px 8px rgba(0, 0, 74, 0.05);
}
.article-content p {
margin-bottom: 1.2em;
}
.article-content ul, .article-content ol {
margin-bottom: 1.2em;
padding-left: 20px;
}
.article-content li {
margin-bottom: 0.6em;
}
.article-content a {
color: var(–primary-color);
text-decoration: none;
font-weight: bold;
}
.article-content a:hover {
text-decoration: underline;
}
.faq-section .faq-item {
margin-bottom: 15px;
}
.faq-section .faq-question {
font-weight: bold;
color: var(–primary-color);
cursor: pointer;
display: flex;
justify-content: space-between;
align-items: center;
}
.faq-section .faq-answer {
margin-top: 10px;
padding-left: 15px;
border-left: 3px solid var(–primary-color);
font-size: 0.95em;
}
.related-tools {
margin-top: 30px;
padding: 20px;
background-color: #e9ecef;
border-radius: 8px;
}
.related-tools ul {
list-style: none;
padding: 0;
}
.related-tools li {
margin-bottom: 10px;
}
.related-tools a {
font-weight: bold;
}
.related-tools p {
font-size: 0.9em;
color: #6c757d;
margin-top: 5px;
}
@media (max-width: 768px) {
.container {
padding: 20px;
}
h1 {
font-size: 2em;
}
h2 {
font-size: 1.5em;
}
.button-group {
flex-direction: column;
align-items: stretch;
}
button {
width: 100%;
}
.intermediate-results {
flex-direction: column;
align-items: center;
}
}
Black Drum Weight Estimator
Estimated Weight (lbs)
Formula Used: The weight of a Black Drum is estimated using a formula that relates its length and girth, often derived from scientific studies. A common general fish weight formula is: Weight (lbs) = (Girth² × Length) / Factor. For Black Drum, a specific factor is often used. We use a simplified approach: Weight (lbs) = (Girth * Girth * Length) / 700 (this factor is an approximation and can vary).
Weight vs. Length (at constant girth ratio)
This chart visualizes how estimated Black Drum weight increases with length, assuming a consistent girth-to-length ratio (based on typical values).
Typical Black Drum Sizes
| Length (in) |
Girth (in) |
Estimated Weight (lbs) |
| 20 |
12 |
~3.4 |
| 25 |
16 |
~7.1 |
| 30 |
20 |
~12.3 |
| 35 |
24 |
~19.0 |
| 40 |
28 |
~27.4 |
Approximate weights based on typical Black Drum proportions. Individual variations exist.
What is a Black Drum Weight Calculator?
{primary_keyword} is a specialized tool designed to estimate the weight of a Black Drum (Pogonias cromis) based on its physical dimensions, primarily its length and girth. Anglers often use this calculator to get a quick, non-lethal estimate of their catch's weight without the need for a scale, which can be particularly useful in tournament situations or for simply tracking fishing success. It helps answer the common question: "How much does this fish weigh?"
Who should use it: This calculator is primarily for recreational and tournament anglers targeting Black Drum. It's also useful for fisheries biologists, researchers, and anyone interested in the growth patterns and biology of this species. It provides a convenient way to estimate fish weight in the field.
Common misconceptions: A common misconception is that a simple length measurement is sufficient to determine weight. However, fish vary significantly in girth even at the same length due to diet, age, and sex. Another misconception is that these calculators provide exact weights; they are estimations, and actual weight can vary. The specific formula and 'factor' used can also lead to differing results between calculators.
Black Drum Weight Formula and Mathematical Explanation
The estimation of fish weight from length and girth relies on the principle that fish are roughly three-dimensional objects whose volume, and thus weight (assuming consistent density), scales with the cube of their linear dimensions. However, fish are not perfect cylinders or spheres. Their bodies taper, and their girth is not uniform.
A widely used general formula for fish weight estimation is based on the concept of Relative Condition Factor (Kn), but a simplified approach often used for quick estimations is:
Weight (lbs) = (Girth × Girth × Length) / Factor
Where:
- Girth (in): The circumference of the fish at its thickest point.
- Length (in): The total length of the fish.
- Factor: A species-specific constant derived from empirical data. For Black Drum, this factor is often approximated around 700, but can vary based on the specific population, age, and health of the fish studied. This factor essentially accounts for the fish's shape and density relative to a perfect geometric form.
Variable Explanations
| Variable |
Meaning |
Unit |
Typical Range |
| Length |
Total length of the Black Drum. |
Inches (in) |
10 – 60+ |
| Girth |
Maximum circumference of the Black Drum. |
Inches (in) |
5 – 40+ |
| Factor |
Empirical constant accounting for fish shape and density. |
Unitless (derived) |
~600 – 800 (approximate for Black Drum) |
| Estimated Weight |
Calculated weight of the Black Drum. |
Pounds (lbs) |
1 – 70+ |
The calculator implements this formula: Weight = (Girth² * Length) / 700. A higher girth relative to length generally indicates a heavier, 'fatter' fish for its size.
Practical Examples (Real-World Use Cases)
Example 1: A Healthy Adolescent Black Drum
An angler catches a Black Drum and measures its length as 32 inches and its girth at the thickest point as 22 inches.
Inputs:
- Length: 32 inches
- Girth: 22 inches
Calculation:
- Length Squared = 32 * 32 = 1024
- Weight = (22 * 22 * 32) / 700
- Weight = (484 * 32) / 700
- Weight = 15488 / 700
- Weight ≈ 22.1 lbs
Result Interpretation: The Black Drum weight calculator estimates this fish to be approximately 22.1 pounds. This indicates a healthy, well-fed fish for its size. This information could be useful for tournament scoring or personal records.
Example 2: A Younger, Slimmer Black Drum
Another angler reels in a smaller Black Drum. They measure its length at 24 inches and its girth at 15 inches.
Inputs:
- Length: 24 inches
- Girth: 15 inches
Calculation:
- Length Squared = 24 * 24 = 576
- Weight = (15 * 15 * 24) / 700
- Weight = (225 * 24) / 700
- Weight = 5400 / 700
- Weight ≈ 7.7 lbs
Result Interpretation: The calculator estimates this Black Drum at about 7.7 pounds. This weight is consistent with a younger or less-fed individual compared to the first example, highlighting the importance of girth in determining overall mass.
How to Use This Black Drum Weight Calculator
Using the {primary_keyword} is straightforward and requires only two measurements:
- Measure Length: Lay the fish flat on a measuring device (like a tape measure or marked board). Measure from the tip of the snout (mouth closed) to the end of the tail fin (caudal fin). Enter this value in inches into the 'Length' field.
- Measure Girth: Find the thickest part of the fish's body, usually just behind the gill plates. Wrap a flexible measuring tape around this point to get the circumference. Enter this value in inches into the 'Girth' field.
- Calculate: Click the "Calculate Weight" button.
How to Read Results:
The calculator will display the estimated weight in pounds (lbs) prominently. It also shows intermediate values like Length Squared, Girth/Length Ratio, and Length Cubed, which help illustrate the calculation components. The chart provides a visual representation of weight scaling, and the table offers comparisons with typical sizes.
Decision-Making Guidance:
While this tool provides an estimate, always consider the specific regulations regarding size and bag limits for Black Drum in your area. If you're in a tournament, accurate measurements are key. If the estimated weight is close to a personal best or a record, you might want to consider using a reliable fish scale for a precise measurement if regulations allow catch-and-release after weighing.
Key Factors That Affect Black Drum Weight Results
Several factors influence the actual weight of a Black Drum and can cause variations from calculator estimates:
- Nutrition and Forage Availability: Black Drum are opportunistic feeders. During times of abundant food (crabs, shrimp, smaller fish), they can gain weight rapidly, appearing "fatter" for their length. Conversely, scarcity leads to leaner fish. This directly impacts the Girth measurement.
- Tidal Conditions and Activity Level: Fish caught during periods of high activity, such as feeding tides, might be slightly leaner due to exertion compared to resting fish. However, well-fed fish will be heavier overall.
- Spawning Cycle: Female Black Drum can carry significant roe (eggs) during the spawning season, adding considerably to their overall weight. Males may also show some seasonal weight fluctuations.
- Age and Growth Rate: Older, slower-growing fish might be less dense or have a different body shape than younger, faster-growing fish. The 'Factor' in the formula implicitly accounts for average growth patterns.
- Measurement Accuracy: Precision in measuring both length and especially girth is crucial. An incorrectly measured girth can lead to significant over- or underestimation of weight. Ensuring the tape is snug but not overly tight is important.
- Environmental Conditions: Water temperature and salinity can influence a fish's metabolism and feeding patterns, indirectly affecting body condition and weight over time. Very large Black Drum, especially, can vary in weight depending on recent feeding success.
Frequently Asked Questions (FAQ)
What is the standard formula for Black Drum weight?+
While there isn't one single universally adopted formula, a common and effective estimation formula is Weight (lbs) = (Girth² × Length) / Factor, with the Factor typically around 700 for Black Drum. This approximates the fish's volume and density.
Can I use this calculator for other fish species?+
This calculator is specifically tuned for Black Drum using an estimated factor. While the general formula structure might apply to other fish, the 'Factor' value would need to be adjusted for each species based on their typical body shape and density. Using it for other species will likely yield inaccurate results.
Why is girth so important for weight calculation?+
Girth represents the "thickness" or "belly" of the fish. For a given length, a larger girth indicates more mass (muscle, fat, organs, roe), leading to a significantly higher weight. It's a key indicator of the fish's condition.
How accurate are these weight estimations?+
Weight calculators provide estimations, not exact weights. Accuracy typically ranges from +/- 5% to 15% compared to actual scale weight. Factors like the fish's condition, hydration level, and the accuracy of measurements significantly influence the result.
What is a good girth-to-length ratio for Black Drum?+
A higher girth-to-length ratio generally indicates a healthier, heavier fish. For large Black Drum (over 30 inches), ratios above 0.7 might be considered excellent condition, while lower ratios suggest a leaner fish.
Should I use inches or centimeters for measurements?+
This calculator is designed for measurements in inches (in). Ensure all your inputs are in inches for accurate results.
What does the "Factor" in the formula mean?+
The "Factor" (e.g., 700) is an empirical constant derived from studying many fish of that species. It adjusts the calculation based on the average body shape and density of Black Drum, converting the volume approximation (Length x Girth²) into a realistic weight estimate.
How can I improve my measurement accuracy?+
Use a flexible measuring tape for girth and ensure it's snug around the thickest part without compressing the fish's body. For length, use a rigid measuring board or ensure the tape is held straight along the fish's body from snout to tail tip. Handling the fish quickly and gently minimizes stress and maintains its shape.
var lengthInput = document.getElementById('length');
var girthInput = document.getElementById('girth');
var lengthError = document.getElementById('lengthError');
var girthError = document.getElementById('girthError');
var resultDiv = document.getElementById('result');
var estimatedWeight = document.getElementById('estimatedWeight');
var intermediateResultsDiv = document.getElementById('intermediateResults');
var lengthSquared = document.getElementById('lengthSquared');
var girthOverLengthRatio = document.getElementById('girthOverLengthRatio');
var lengthCubed = document.getElementById('lengthCubed');
var chart = null; // Global variable for chart instance
var weightLengthChartCanvas = document.getElementById('weightLengthChart').getContext('2d');
var length_MAX = 60; // Max reasonable length in inches
var girth_MAX = 40; // Max reasonable girth in inches
var factor = 700;
function isValidNumber(value) {
return !isNaN(parseFloat(value)) && isFinite(value);
}
function validateInput(inputElement, errorElement, maxValue, fieldName) {
var value = inputElement.value.trim();
var errorMsg = "";
if (value === "") {
errorMsg = fieldName + " is required.";
} else {
var numValue = parseFloat(value);
if (isNaN(numValue) || numValue maxValue) {
errorMsg = fieldName + " seems too high (max " + maxValue + " in).";
}
}
errorElement.textContent = errorMsg;
return errorMsg === "";
}
function calculateWeight() {
var isLengthValid = validateInput(lengthInput, lengthError, length_MAX, "Length");
var isGirthValid = validateInput(girthInput, girthError, girth_MAX, "Girth");
if (!isLengthValid || !isGirthValid) {
resultDiv.style.display = 'none';
intermediateResultsDiv.style.display = 'none';
return;
}
var length = parseFloat(lengthInput.value);
var girth = parseFloat(girthInput.value);
var calculatedWeight = (girth * girth * length) / factor;
var lenSq = length * length;
var girthLenRatio = girth / length;
var lenCubed = length * length * length;
estimatedWeight.textContent = calculatedWeight.toFixed(2);
lengthSquared.textContent = lenSq.toFixed(1);
girthOverLengthRatio.textContent = girthLenRatio.toFixed(3);
lengthCubed.textContent = lenCubed.toFixed(0);
resultDiv.style.display = 'block';
intermediateResultsDiv.style.display = 'flex';
updateChart(length, girth);
}
function resetCalculator() {
lengthInput.value = "";
girthInput.value = "";
lengthError.textContent = "";
girthError.textContent = "";
resultDiv.style.display = 'none';
intermediateResultsDiv.style.display = 'none';
if (chart) {
chart.destroy(); // Destroy previous chart instance
chart = null;
}
// Optionally reset chart to default state or empty
drawDefaultChart();
}
function copyResults() {
var mainResult = estimatedWeight.textContent;
var lengthVal = lengthInput.value;
var girthVal = girthInput.value;
var lengthSqVal = lengthSquared.textContent;
var girthLenRatioVal = girthOverLengthRatio.textContent;
var lengthCubedVal = lengthCubed.textContent;
var assumptions = "Formula Factor: " + factor + "\n";
var textToCopy = "Black Drum Weight Estimate:\n";
textToCopy += "—————————-\n";
textToCopy += "Length: " + lengthVal + " in\n";
textToCopy += "Girth: " + girthVal + " in\n";
textToCopy += "Estimated Weight: " + mainResult + " lbs\n";
textToCopy += "—————————-\n";
textToCopy += "Intermediate Values:\n";
textToCopy += "Length Squared: " + lengthSqVal + " in²\n";
textToCopy += "Girth/Length Ratio: " + girthLenRatioVal + "\n";
textToCopy += "Length Cubed: " + lengthCubedVal + " in³\n";
textToCopy += "—————————-\n";
textToCopy += "Assumptions:\n" + assumptions;
navigator.clipboard.writeText(textToCopy).then(function() {
// Optional: Show a confirmation message
var originalButtonText = document.querySelector('button.secondary').textContent;
document.querySelector('button.secondary').textContent = 'Copied!';
setTimeout(function() {
document.querySelector('button.secondary').textContent = originalButtonText;
}, 2000);
}, function() {
alert('Failed to copy results. Please copy manually.');
});
}
function updateChart(currentLength, currentGirth) {
if (chart) {
chart.destroy();
}
var maxChartLength = Math.max(currentLength * 1.5, 50); // Extend chart range slightly beyond current input
var chartDataPoints = 50;
var lengthStep = maxChartLength / chartDataPoints;
var lengths = [];
var weights = [];
var averageGirth = currentGirth; // Keep girth constant for this comparison
var ratio = currentGirth / currentLength; // Calculate ratio from current input
// Adjust girth proportionally if length changes, to maintain ratio
var proportionalGirths = [];
for (var i = 0; i < chartDataPoints; i++) {
var l = i * lengthStep;
if (l === 0) continue; // Avoid division by zero
// Option 1: Keep girth constant (less realistic for scaling)
// var w = (averageGirth * averageGirth * l) / factor;
// Option 2: Scale girth proportionally to length, maintaining the *current* ratio
var proportionalG = l * ratio;
// Ensure girth doesn't become unrealistically small for short lengths
if (proportionalG < 5) proportionalG = 5;
var w = (proportionalG * proportionalG * l) / factor;
lengths.push(l);
weights.push(w);
proportionalGirths.push(proportionalG);
}
chart = new Chart(weightLengthChartCanvas, {
type: 'line',
data: {
labels: lengths.map(function(l) { return l.toFixed(1); }),
datasets: [{
label: 'Estimated Weight (lbs)',
data: weights,
borderColor: 'var(–primary-color)',
borderWidth: 2,
fill: false,
tension: 0.1
},
{
label: 'Girth (in)', // Second data series for girth
data: proportionalGirths,
borderColor: 'var(–success-color)',
borderWidth: 2,
fill: false,
tension: 0.1,
yAxisID: 'y-axis-girth' // Assign to secondary y-axis
}]
},
options: {
responsive: true,
maintainAspectRatio: false,
scales: {
x: {
title: {
display: true,
text: 'Length (in)'
}
},
y: {
title: {
display: true,
text: 'Weight (lbs)'
},
beginAtZero: true
},
y1: { // Configuration for the secondary y-axis
id: 'y-axis-girth',
type: 'linear',
position: 'right',
title: {
display: true,
text: 'Girth (in)'
},
beginAtZero: true,
grid: {
drawOnChartArea: false, // Only draw grid lines for the primary y-axis
}
}
},
plugins: {
tooltip: {
callbacks: {
label: function(context) {
var label = context.dataset.label || '';
if (label) {
label += ': ';
}
if (context.parsed.y !== null) {
label += context.parsed.y.toFixed(context.dataset.label.includes('Weight') ? 2 : 1);
}
return label;
}
}
}
}
}
});
}
function drawDefaultChart() {
// Draw a default chart with typical Black Drum sizes
var defaultLengths = [20, 25, 30, 35, 40, 45, 50];
var defaultGirths = [12, 16, 20, 24, 28, 32, 35]; // Approximate girths
var defaultWeights = [];
for (var i = 0; i < defaultLengths.length; i++) {
var l = defaultLengths[i];
var g = defaultGirths[i];
var w = (g * g * l) / factor;
defaultWeights.push(w);
}
chart = new Chart(weightLengthChartCanvas, {
type: 'line',
data: {
labels: defaultLengths.map(function(l) { return l.toFixed(0); }),
datasets: [{
label: 'Estimated Weight (lbs)',
data: defaultWeights,
borderColor: 'var(–primary-color)',
borderWidth: 2,
fill: false,
tension: 0.1
},
{
label: 'Girth (in)',
data: defaultGirths,
borderColor: 'var(–success-color)',
borderWidth: 2,
fill: false,
tension: 0.1,
yAxisID: 'y-axis-girth'
}]
},
options: {
responsive: true,
maintainAspectRatio: false,
scales: {
x: {
title: {
display: true,
text: 'Length (in)'
}
},
y: {
title: {
display: true,
text: 'Weight (lbs)'
},
beginAtZero: true
},
y1: {
id: 'y-axis-girth',
type: 'linear',
position: 'right',
title: {
display: true,
text: 'Girth (in)'
},
beginAtZero: true,
grid: {
drawOnChartArea: false,
}
}
},
plugins: {
tooltip: {
callbacks: {
label: function(context) {
var label = context.dataset.label || '';
if (label) {
label += ': ';
}
if (context.parsed.y !== null) {
label += context.parsed.y.toFixed(context.dataset.label.includes('Weight') ? 2 : 1);
}
return label;
}
}
}
}
}
});
}
// Toggle FAQ answers
function toggleFaq(element) {
var answer = element.nextElementSibling;
var sign = element.querySelector('span');
if (answer.style.display === "none" || answer.style.display === "") {
answer.style.display = "block";
sign.textContent = "-";
} else {
answer.style.display = "none";
sign.textContent = "+";
}
}
// Initial chart draw on load
window.onload = function() {
drawDefaultChart();
// Add event listeners for real-time calculation (optional, but good UX)
lengthInput.addEventListener('input', function() {
if (lengthInput.value && girthInput.value) {
calculateWeight();
}
});
girthInput.addEventListener('input', function() {
if (lengthInput.value && girthInput.value) {
calculateWeight();
}
});
};