This was on my to do list for a long time. Took me a while since I have considered a bit complex method.
I have taken house cost and farm cost into consideration. Then farm upgrades are also a factor. I considered 300 food per farms as Heavy Plow is often delayed. Also working rate for farmer and gold miner is also not straight forward. Farmer’s work rate varies with eco upgrades as well as farm placement. Often Wheelbarrow is not even researched until mid Castle. So I have considered 21 food/min which is about 10% less than a farmer with Wheelbarrow.
Similarly gold miner work rate is 5% less than miner with 1st mining tech as the tech is not always researched in Feudal. Lumberjack is pretty straight forward because Bow Saw is an immediate pick once you reach Castle Age.