This calculator helps you estimate the profit you can make from farming Limpwurt Seeds in Old School RuneScape. It takes into account the cost of seeds, compost, and the current Grand Exchange prices for Limpwurt Roots and Seaweed.
function calculateSeaweedProfit() {
var seedCost = parseFloat(document.getElementById("seedCost").value);
var herbCost = parseFloat(document.getElementById("herbCost").value);
var seaweedPrice = parseFloat(document.getElementById("seaweedPrice").value);
var limpwurtRootPrice = parseFloat(document.getElementById("limpwurtRootPrice").value);
var runsPerInventory = parseFloat(document.getElementById("runsPerInventory").value);
var inventoriesPerHour = parseFloat(document.getElementById("inventoriesPerHour").value);
var resultDiv = document.getElementById("result");
resultDiv.innerHTML = ""; // Clear previous results
if (isNaN(seedCost) || isNaN(herbCost) || isNaN(seaweedPrice) || isNaN(limpwurtRootPrice) || isNaN(runsPerInventory) || isNaN(inventoriesPerHour) ||
seedCost < 0 || herbCost < 0 || seaweedPrice < 0 || limpwurtRootPrice < 0 || runsPerInventory <= 0 || inventoriesPerHour <= 0) {
resultDiv.innerHTML = "Please enter valid positive numbers for all fields.";
return;
}
// Calculations per Limpwurt plant
var costPerPlant = seedCost + herbCost; // Assuming one seed grows into one herb for simplicity in this context
var revenuePerPlant = seaweedPrice + limpwurtRootPrice;
var profitPerPlant = revenuePerPlant – costPerPlant;
// Calculations per inventory
var totalCostPerInventory = costPerPlant * runsPerInventory;
var totalRevenuePerInventory = revenuePerPlant * runsPerInventory;
var totalProfitPerInventory = profitPerPlant * runsPerInventory;
// Calculations per hour
var totalCostPerHour = totalProfitPerInventory * inventoriesPerHour;
var totalRevenuePerHour = totalRevenuePerInventory * inventoriesPerHour;
var totalProfitPerHour = totalProfitPerInventory * inventoriesPerHour;
resultDiv.innerHTML = `