# Calculator:Farming/Herbs

Templates used Calculator:Farming/Herbs/Template
 Notice: This calculator has recently been updated. This calculator now shows profit and experience based on an entire herb farming run rather than a single herb patch. This was updated to provide a more accurate estimation across multiple patches.

This calculator determines expected yield, cost and profit (or lack thereof) of planting and picking herbs on a per run basis. 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].
• Composting experience is not included in the total run experience.

## Herbs

template=Calculator:Farming/Herbs/Template
form=HerbForm
result=HerbResult
param = playername|Name||hs|FarmingLevel_Input,20,1
param = FarmingLevel_Input|Farming Level|1|int|1-99|
param = AllotmentNumber_Input|Number of Allotments|1|int|1-9
param = DiseasePatch_Input|Disease-free Patch|0|int|0-3
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 = Anima_Input|Anima Seed|None|select|None,Attas,Iasor
param = Cath_Patch_Input|Kandarin Diary|None|select|None,Kandarin (Medium Diary 5%),Kandarin (Hard Diary 10%),Kandarin (Elite Diary 15%)
param = Hosi_Patch_Input|Kourend Hard Diary|no|check|yes,no

 Please input the data and submit the form.

## References

1. Jagex. Mod Kieren's Twitter account. 8 September 2017. Mod Kieren: "On each stage! The division is always rounded down."