Demeter — a financial and operational model for agriculture
From fields and herds to production costs, cash flow and the financial impact of decisions.
Demeter is an MFO (Financial and Operational Model) system for farms and the next generation of FarmWise. It connects crop and milk production planning with calculations for fertilizer costs, fuel, leases, subsidies, cash flow and asset valuation.
The model is based on Activity Based Costing (ABC): assigning costs to specific activities, operations and products. This allows Demeter to calculate the technical cost of production (TCP) for crops and milk based on farm processes, rather than solely on aggregate budget assumptions.
Portfolio · Agriculture
Nearly 4 million
formula cells across hundreds of worksheets
Up to 5 years
planning horizon in operational modules
ABC
costs assigned to activities, operations and products
Plan vs actuals
Demeter scenarios compared with actual data from Echo

The system's purpose is not record-keeping. It is to answer the question: what will happen, and what will the financial and operational consequences be?
Problem
One decision changes the performance of the entire farm
Maize yield affects more than crop revenue. It changes the feed balance, herd feeding costs, the technical cost of milk production, cash flow and EBIT. Similarly, a decision about an insemination method affects not only current spending but also herd structure and milk production in subsequent years.
A budget based solely on overall costs does not show these relationships in sufficient detail. What is needed is a model that connects biological, operational and financial parameters, then allows plans to be compared with actuals.
Demeter builds this connected logic across hundreds of worksheets. A change in one parameter propagates through dozens of modules. The system should therefore be understood as a network of dependencies, not a list of independent functions.
Without a connected model
Costs without a full picture of the consequences
Aggregate budget items do not explain which operation generates a cost or how a change in crops will affect livestock production. Record-keeping alone answers “what happened?” but does not calculate the future consequences of decisions.
With Demeter
From operational parameters to financial results
Every cost has a source, a driver and a place in the production structure. The model recalculates the effects of changes, saves budgets and scenarios, and compares them with structured actual data from Echo.
System architecture
Every technology has a defined role
Excel — Demeter's calculation logic
The calculation layer comprises nearly 4 million formula cells across hundreds of worksheets. Excel provides formula transparency and control over the model. It connects calculations for crops, herds, costs, revenue and cash flow so that changes in assumptions update related results.
Activity Based Costing assigns costs to specific activities, operations and products. This forms the basis for calculating crop and milk TCP and analysing the consequences of decisions over the projected time horizon.
Echo — actual data from invoices
Echo parses and interprets cost invoices. It saves the results in a structured format to the same database that receives Demeter's calculations. Actual costs can therefore be compared directly with the plan — by crop, activity and cost category, with milk cost analysis also allowing users to drill down to a specific invoice.
Python — integration and processing
Python handles integration and data processing logic. It connects the calculation layer with the other architectural components, keeping calculations in the model and the storage and distribution of results in the database.
NoSQL — budgets, scenarios and actuals
The NoSQL database stores and provides access to calculated results: budgets, planning scenarios and data for comparative analyses. It also stores actual data from Echo. A shared structure enables results to be distributed across the company and scenarios to be compared without manually combining separate files.
React — dashboards and comparisons
React powers the dashboards presenting model results. The visual layer shows forecasts, actuals and variances against plan, including monthly operating cost summaries and milk production analyses.
Language models — interpretation, not calculation
Language models such as Claude support data interpretation and the creation of descriptive summaries. They receive figures already calculated by Demeter. Separating calculation from interpretation is intended to limit the impact of the probabilistic nature of LLMs on numerical analysis: the LLM does not calculate — it interprets. The numbers come from Demeter.
Modules and features
Crops and herds in one financial and operational model
The AGRO and HERD modules feed into each other's calculations. Harvests feed into the feed balance, herd size determines feed and straw demand, and organic fertilizer production affects crop costs. Results are saved as budgets and scenarios that can be compared with actuals supplied by Echo.

AGRO: Global Data
Collects key crop reference data: minimum and maximum yields, crop type (winter or spring), harvest season, losses due to improper storage, fuel requirements per hectare, straw-to-grain ratio and straw bale parameters. This data forms the basis for financial and operational calculations for individual crops.
AGRO: Initial Data
Defines the farm's initial state at the start of the analysis: herd age structure, fertilization method, the previous year's harvests, initial technical production costs and crop prices, and feed and straw stocks from the previous season.
AGRO: Land Costs
Monitors agricultural land use costs. Allows specific land to be assigned to lease agreements or agricultural loans. Tracks expenditure associated with individual plots and forecasts future land use costs.
AGRO: Prices – Fertilizers
Manages fertilizer and seed costs on a quarterly and annual basis. Calculates the cost per hectare for each crop for fertilizers such as NPK, nitrate, urea, sulphate, potassium and phosphorus, as well as seed. Forecasts expenditure several years ahead.
AGRO: Prices – Pesticides
Monitors and forecasts quarterly crop protection costs for different crops: herbicides, fungicides and insecticides. Allows crop protection strategies to be adapted to price changes and the specific needs of each crop.
AGRO: Action Plan
Plans agricultural operations for each crop: stubble cultivation, liming, fertilization, ploughing, sowing, spraying and harvesting. Connects the operations schedule with fuel and material requirements, external service costs and machinery parameters.
Enables simulation of the impact of new machinery on operating costs and modelling of the replacement of synthetic fertilizers with digestate from a biogas plant. Cost parameters are set for a 5-year period. Results are stored in the database as scenarios — for example, an agricultural operations plan with a new machine and the current setup — available for direct comparison.
AGRO: Land Costs Allocation
Assigns land financing and lease costs to specific crops. For each plot, it allocates loan and lease costs in proportion to the hectares occupied. Provides a 5-year cost forecast by crop. Changes in the cropping structure automatically update the allocated costs.
AGRO: Dotations
Manages payments and subsidies for individual crops. Allows crops to be assigned to subsidy types, their annual values to be entered, and production costs to be calculated before and after support.
Simulates EBIT at different subsidy levels: 100%, 50%, 0% and intermediate variants. Calculates the margin per tonne after financial support. Subsidy variants can be stored as separate scenarios and compared.
AGRO: Insurances
Manages crop insurance: premium amounts, payment months and the level of yield protection, meaning the minimum insured yield. Automatically calculates potential payouts in the event of a yield shortfall and the impact of premiums on cash flow.
AGRO: Cultivations & Market Operations
The central crop planning module combines areas, yields and market prices in a profitability calculation. Assigns hectares to crops, accounts for the percentage of planned yield achieved and current market prices. Calculates TCP per tonne, unit and total margins, and forecasts sales revenue.
Manages the allocation of harvests between sales and internal use — surpluses automatically feed into feed storage. Crop plans are saved to the database as budgets and scenarios available for comparison and distribution across the company.
AGRO: Straw Production
Manages straw production as a separate product and resource. Calculates the straw-to-grain ratio, total straw weight and maximum number of bales. Accounts for the herd's changing demand for bedding and feed straw.
Calculates production and transport costs per bale and per tonne, straw production profitability and a 5-year forecast. The balance between on-farm production and herd demand is derived from the combined AGRO and HERD data.
AGRO: Crops Technical Costs
Aggregates data from all AGRO modules into a complete TCP calculation for each crop. Includes direct costs — fuel, fertilizers, crop protection products, seeds and external services — and indirect costs, including allocated financing costs for land plots.
Calculates TCP per tonne, unit and total margins, EBIT under different subsidy scenarios, and the value of by-products such as straw and beet pulp. The output document for each crop is saved to the database as part of the budget.
Actual data from Echo, such as fertilizer, crop protection and fuel invoices assigned to crops, is automatically compared with the plan. This provides an up-to-date view of performance against target for each crop.
HERD: Global Data
Collects reference data for individual animal classes: calves, heifers in different age groups, dairy cows in successive lactation cycles and dry cows.
Defines age and weight, daily weight gain, lactation cycle, daily manure and slurry production, bedding straw consumption, probability of oestrus and the animal's market value. Includes financial classification: Investment for heifers and Earning for dairy cows.
HERD: Straw Bedding
Plans bedding straw consumption for each animal class. Defines daily requirements per head and calculates quarterly demand, accounting for changes in herd size.
Calculates quarterly straw consumption costs for each class based on the changing cost of on-farm production. Results directly affect the straw balance in AGRO: Straw Production.
HERD: Buildings & Straw Beddings
Manages livestock housing space and bedding schedules. Allows bedding dates to be set for individual buildings, along with the percentage straw demand factor and building dimensions and floor areas.
Automatically calculates cow stocking density in head per m² based on herd size and building floor area.
HERD: Cow Barn Allocation
Allocates animal groups to specific buildings on a quarterly basis. Assigns animal classes — milking cows, heifers and dry cows — to building identifiers. Tracks changes in animal numbers, calculates stocking density and monitors available space and occupancy above the planned level.
HERD: Feed Formula
Creates feed formulations for the herd and manages their costs. Allows up to 10 different formulations to be defined, with effective dates, ingredients and quantities. Includes maize silage, alfalfa, beet pulp, grain, soybean meal, CCM and GPS.
Calculates the costs of on-farm and purchased ingredients, as well as daily, monthly and multi-year feed requirements and costs. Formulations are stored in the database with version history. Invoices for purchased feed ingredients, processed by Echo, are automatically compared with the cost plan.
HERD: Inventory Transactions
The central register of herd movements covers purchases, sales, transfers between classes, deaths and losses. The system automatically assigns animals to production cycles based on age and transaction date and identifies when they leave the herd.
Enables reports on current herd composition and transaction history. Data from this module feeds into forecasts of milk production, calvings and feeding costs.
HERD: Feed Demand & Consumption
Plans quarterly herd feed requirements over a horizon of up to 5 years. Distinguishes between on-farm and purchased feed, forecasts the availability of key feeds, and supports inventory management and purchase planning while accounting for the herd's production cycles.
The feed balance combines formulations from Feed Formula, which define quantities per head, with animal numbers from Inventory Transactions.
HERD: Organic Fertilizer Output
Plans and monitors the herd's production of natural organic fertilizers. Calculates daily and monthly manure production in kilograms and slurry production in litres — for each animal class and the entire herd.
The available quantity of organic fertilizer automatically reduces planned synthetic fertilizer requirements in the crop TCP calculation.
HERD: Veterinary Services Prices
Manages price lists and cost forecasts for veterinary services: vaccinations, preventive procedures and treatments for individual diseases. Calculates quarterly veterinary operating costs and enables comparison of prevention and treatment costs.
Actual data from Echo, drawn from veterinary invoices, is compared with the plan by category.
HERD: Veterinary Vaccinations and Services
Manages vaccination and treatment schedules by animal age. Defines vaccinations against diseases such as brucellosis, leptospirosis, BVD, IBR and anthrax, assigning the month of life and frequency.
Automatically assigns animals to vaccination cycles based on age, without manually managing a schedule for each animal.
HERD: Illness Treatment – Probability
Models the statistical probability of illness by animal class and age group. Covers mastitis, lameness, ketosis, BVD, leptospirosis and bacterial infections, among others. Differentiates risk for heifers, milking cows and dry cows.
Forecasts the number of cases based on herd structure. When herd size increases in a scenario, the model automatically recalculates the expected number of cases.
The module is based on a statistical norm for the given herd, species and housing conditions: the number of cases expected within a specified period. If the actual number of cases, based on data supplied by Echo, deviates significantly from the norm, the system generates an alert.
An upward variance may indicate a concerning situation in the herd. A downward variance may suggest incomplete or incorrect input data. Demeter identifies the variance but does not determine its cause. Both cases require verification.
HERD: Illness Treatment Planner
Manages the herd's disease treatment schedule: start and end dates, monthly treatment frequency, average cases per quarter and the percentage of the population receiving treatment. Forecasts costs by disease and supports veterinary budget allocation.
Combines statistical norms from the Probability module with the veterinary price list, translating them into a cost and operational plan. Actual data from Echo, including veterinary invoices assigned to diseases, is compared with this plan.
A significant cost overrun may indicate that the herd's norm is incorrectly calibrated or that the situation requires intervention. A downward variance from the norm also requires checking — it may result from incomplete invoice data. The Planner therefore serves a budgeting function and supports early alerts for variances related to herd health.
HERD: Insemination Prices
Analyses insemination as an activity with its full financial and production consequences. Under the Activity Based approach, each method is a separate activity with its own profile of costs, effectiveness and impact on the herd.
Conventional and sexed semen differ in more than price. The choice of technology affects the expected sex distribution of offspring and, through the number of heifers, the rate of dairy herd expansion in subsequent years. Differences in procedure effectiveness and the probability of repeat attempts change both costs and the calving schedule.
The module accounts for the costs of the insemination cycle, procedures, medicines, tests, monitoring and additional expenses. It translates these into quarterly insemination operating costs.
An unsuccessful insemination means another cycle, additional cost and delayed calving — and therefore a delay in the cow entering lactation. The module is therefore linked to Dairy Cycle and Milk Production. Actual data from Echo — invoices for semen and procedures — is automatically compared with the plan, supporting assessment of the actual cost and effectiveness of each method.
HERD: Dairy Cycle
Plans the herd's reproductive and lactation cycles. Defines the oestrous cycle schedule and insemination cycles 1–7, with a choice of conventional or sexed technology and a repeat insemination rate. Automatically calculates calving dates and the costs of individual technologies.
Defines average milk production for lactation cycles 1–7. Also forecasts quarterly herd losses across 9 age cohorts.
Results are stored in the database as scenarios. Variants using different insemination technologies allow direct comparison of breeding strategies and their impact on herd structure and milk production in 2–3 years.
HERD: Calvings
Tracks and forecasts calvings and natural herd losses. Calculates the quarterly number of calvings from conventional and sexed insemination, the proportions of heifer and bull calves, the herd replacement rate and the average monthly number of calvings.
Accounts for natural losses by reproductive cycle and quarter. It is a direct output of Dairy Cycle and supplies planned events to Inventory Transactions.
HERD: Milk Production
Forecasts daily, monthly and quarterly milk production. Average daily production is not a simple average for the entire herd. It is calculated using each cow's age and current production cycle. The forecast is adjusted to the herd's capacity and milking technology.
The module accounts for current and future insemination policies. Changes in reproductive strategy feed into production forecasts for subsequent quarters. It also visualizes current feed quality and its impact on milk yield.
The model calculates when the herd will begin producing milk and how production will change as the herd expands or contracts. For successive quarters, it determines the numbers of lactating animals, dry cows and heifers not yet producing milk.
Purchasing heifers or intensifying insemination does not increase production immediately. Demeter shows the timing and scale of the forecast increase, accounting for the animals' biological cycles.
Allows virtual populations to be defined for simulating scenarios such as new milking technology or the impact of disease on production. Automatically calculates milk revenue. Forecasts are saved in the database by scenario and compared with actual data.
HERD: Technical Cost – Milk Production
Calculates the technical cost of milk production. Compares revenue with full operating costs: on-farm and purchased feed, straw, energy, fuel, veterinary care, insemination and insurance.
Calculates margin, TCP per litre of milk and profitability by production cycle. Aggregates data from all HERD modules into an output document for the dairy activity, saved in the database as a budget.
Cost invoices assigned to milk production and processed by Echo are compared with the plan. This enables analysis of current performance against target for each cost category and drill-down to a specific invoice.

HERD: Technical Cost – Milk Production Benchmark
Analyses milk TCP over time. Monitors detailed costs and revenue on a monthly and annual basis, identifies periods of highest and lowest profitability, and compares results with previous years and other scenarios.
This is the only module focused on retrospective analysis. It stores historical data from the system's launch, enabling analysis of milk TCP trends and identification of the causes of changes without manually compiling data.
Results
How Demeter changes farm planning
Production costs with a visible source
ABC calculations link costs to activities, operations and products. Crop and milk TCP is derived from production parameters, resource consumption and cost allocation, rather than remaining merely an aggregate budget item.
The full chain of a decision's consequences
A change in yield, cropping structure, feed formulation or insemination strategy updates related calculations. Its impact can be traced from production and resource requirements through to margin, cash flow and EBIT.
Scenarios available for comparison
A new machine, a different insemination technology or a changed subsidy level can be saved as separate variants. The NoSQL database makes budgets and scenarios available for comparative analysis and distribution across the company.
Plans compared with actuals
Echo supplies structured actual data from invoices to the same database as the model's results. Dashboards show actual performance and variances by crop and cost category, while milk cost analysis allows users to drill down to the source document.
Herd growth with timing taken into account
The model shows when herd expansion may translate into milk production. It accounts for age structure, reproductive and lactation cycles, feeding costs and livestock housing requirements.
Variances that need attention
Statistical norms and the veterinary cost plan provide a reference point for actuals. The system flags discrepancies that may require data checks, assumption calibration or assessment of the herd's condition — without automatically determining the cause.
Cost history without manual compilations
The milk TCP benchmark retains data from the system's launch. It enables analysis of trends, seasonal changes in profitability and differences between years and scenarios.
AI interprets calculated results
The language layer receives numerical data calculated by the model. Calculations remain in Demeter, while AI supports interpretation and description of results rather than replacing the financial and operational logic.
Need someone who understands the problem — and knows what to do about it?
Most companies have data. What is missing is an idea of how to use it and someone who will actually make it happen. Origami Effect combines financial and operational model design with implementation.
