# User:RansomTime/Herbs

This calculator determines expected yield, cost and profit (or lack thereof) of planting and picking herbs on a full herb run. It assumes:

• All prices are based on the Grand Exchange Market Watch, including seeds, herbs and composts.
• The price of goutweed, whilst not having a specific Grand Exchange value, has an inherent value based on the exchange value of the herbs it provides when exchanging goutweed with Sanfew. An expected value can be obtained based on the probabilities listed.
• Expected chance of disease leading to death based on ${\displaystyle (1-P)^{n-2}}$, where ${\displaystyle P}$ is the probability of disease per stage and ${\displaystyle n}$ is the number of growth cycles the crop requires to fully grow.
• Expected yield based on negative binomial distribution of ${\displaystyle {\frac {HarvestLives}{(1-ChancetoSave)}}}$
• Rounding down is used on all base chances as is expected with Runescript and as described by Jagex Moderators[1].
1. Jagex. Mod Kieren's Twitter account. 8 September 2017. Mod Kieren: "On each stage! The division is always rounded down."

## Herbs

template=User:RansomTime/Herbs/Template
form=HerbFormFullTrip
result=HerbResultFullTrip
param = playername|Name||hs|FarmingLevel_Input,20,1
param = FarmingLevel_Input|Farming Level|1|int|1-99|
param = Compost_Input|Compost|None|select|None,Compost,Supercompost,Ultracompost
param = Bucket_Input|Bottomless Bucket|no|check|yes,no
param = Secateurs_Input|Magic Secateurs|no|check|yes,no
param = Cape_Input|Farming Cape|no|check|yes,no
param = Attas_Input|Attas|no|check|yes,no
param = Patch_Gla_Immune|50%+ Hosidius favour|yes|check|yes,no
param = Patch_Cth_Bonus|Catherby Diary Bonus|None|select|None,Medium 5%,Hard 10%,Elite 15%
param = Patch_Zeah_Bonus|Zeah Hard Diary?|no|check|yes,no