Stardew Valley Profit Calculator
About this app
Calculate profits from various crops and produce in Stardew Valley with this fun and interactive web app!
Stardew Valley Profit Calculator Stardew Valley Profit Calculator Select Crop: Parsley Kale Blueberry Pumpkin Quantity: Calculate Profit
Related apps
Put this on your site
Source
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>Stardew Valley Profit Calculator</title>
<meta name="description" content="Calculate profits from various crops and produce in Stardew Valley with this fun and interactive web app!">
<meta name="keywords" content="Stardew Valley, profit calculator, crop calculator, gaming, Stardew">
<!-- Libraries -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js" crossorigin="anonymous"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" crossorigin="anonymous">
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.min.js" crossorigin="anonymous"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@6.6.0/css/fontawesome.min.css" crossorigin="anonymous">
<script type="text/javascript">
try {
document.addEventListener("DOMContentLoaded", function() {
const cropData = {
"Parsley": { base_value: 40, grow_time: 4, season: "Spring" },
"Kale": { base_value: 70, grow_time: 6, season: "Spring" },
"Blueberry": { base_value: 50, grow_time: 13, season: "Summer", regrowth: true },
"Pumpkin": { base_value: 100, grow_time: 13, season: "Fall" }
};
$("#calculate").on("click", function() {
const cropName = $("#cropName").val();
const quantity = parseInt($("#quantity").val());
if (cropData[cropName]) {
const { base_value, grow_time, regrowth } = cropData[cropName];
const profit = base_value * quantity;
const dried = regrowth ? quantity * 1.25 : quantity;
$("#result").html(`
<h3>Results for ${cropName}</h3>
<p>Total profits from ${quantity} ${cropName}(s): <strong>$${profit}</strong></p>
<p>If dried, profit potential increases to: <strong>$${base_value * dried}</strong></p>
<p>Growth time: ${grow_time} days</p>
`);
} else {
$("#result").html("<p class='text-danger'>Crop not found. Please select a valid crop.</p>");
}
});
});
} catch (error) {
throw error;
}
</script>
<style>
body {
background: linear-gradient(to right, #ffafbd, #ffc3a0);
color: #333;
font-family: 'Arial', sans-serif;
}
#main-container {
margin-top: 20px;
padding: 20px;
border-radius: 10px;
background-color: rgba(255, 255, 255, 0.8);
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}
.btn-primary {
background-color: #6c5ce7;
border: none;
}
.btn-primary:hover {
background-color: #5f27cd;
}
h2, h3 {
text-align: center;
}
</style>
</head>
<body>
<div id="main-container" class="container">
<h2>Stardew Valley Profit Calculator</h2>
<div class="mb-3">
<label for="cropName" class="form-label">Select Crop:</label>
<select id="cropName" class="form-select">
<option value="Parsley">Parsley</option>
<option value="Kale">Kale</option>
<option value="Blueberry">Blueberry</option>
<option value="Pumpkin">Pumpkin</option>
</select>
</div>
<div class="mb-3">
<label for="quantity" class="form-label">Quantity:</label>
<input type="number" id="quantity" class="form-control" min="1" value="1">
</div>
<button id="calculate" class="btn btn-primary">Calculate Profit</button>
<div id="result" class="mt-4"></div>
</div>
</body>
</html>
NEW APPS
These are apps made by the community!