Osrs Seaweed Calculator

OSRS Seaweed Calculator

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 = `

Estimated Profit per Hour

Cost per Plant: ${costPerPlant.toLocaleString()} coins Revenue per Plant: ${revenuePerPlant.toLocaleString()} coins Profit per Plant: ${profitPerPlant.toLocaleString()} coins
Profit per Inventory: ${totalProfitPerInventory.toLocaleString()} coins Estimated Profit per Hour: ${totalProfitPerHour.toLocaleString()} coins Estimated Revenue per Hour: ${totalRevenuePerHour.toLocaleString()} coins Estimated Cost per Hour: ${totalCostPerHour.toLocaleString()} coins `; } .osrs-seaweed-calculator { font-family: Arial, sans-serif; border: 1px solid #ccc; padding: 20px; border-radius: 8px; max-width: 500px; margin: 20px auto; background-color: #f9f9f9; } .osrs-seaweed-calculator h2 { text-align: center; color: #333; margin-bottom: 20px; } .osrs-seaweed-calculator p { line-height: 1.6; color: #555; } .osrs-seaweed-calculator .input-section { margin-bottom: 20px; } .osrs-seaweed-calculator label { display: block; margin-bottom: 8px; font-weight: bold; color: #444; } .osrs-seaweed-calculator input[type="number"] { width: calc(100% – 20px); padding: 10px; margin-bottom: 15px; border: 1px solid #ddd; border-radius: 4px; box-sizing: border-box; } .osrs-seaweed-calculator button { display: block; width: 100%; padding: 12px 20px; background-color: #4CAF50; color: white; border: none; border-radius: 4px; cursor: pointer; font-size: 16px; transition: background-color 0.3s ease; } .osrs-seaweed-calculator button:hover { background-color: #45a049; } #result { margin-top: 20px; padding: 15px; border: 1px solid #eee; background-color: #fff; border-radius: 4px; text-align: left; } #result h3 { color: #333; margin-top: 0; }

Leave a Reply

Your email address will not be published. Required fields are marked *