A web-based financial decision tool designed to help smallholder farmers calculate production costs, determine break-even prices, and estimate expected profit or loss before selling their crops. This project addresses profit blindness in small-scale farming, especially in regions like Makueni County, Kenya, where agricultural margins are thin and
# AgriProfit
A web-based financial decision tool designed to help smallholder farmers calculate production costs, determine break-even prices, and estimate expected profit or loss before selling their crops.
This project addresses profit blindness in small-scale farming, especially in regions like Makueni County, Kenya, where agricultural margins are thin and input costs fluctuate.
---
## Problem Statement
Many farmers:
- Do not track production costs accurately
- Price crops emotionally instead of strategically
- Do not calculate break-even price
- Realize losses after selling
This leads to poor financial decision-making and reduced profitability.
---
# Screenshots
* Navbar
.png>)
* footer
.png>)
* landing page
.png>)
* news section
.png>)
* More news section
.png>)
* tools section
.png>)
* About section
.png>)
* contact section
.png>)
* experts section
.png>)
## Solution
The Farm Input Cost Optimizer allows farmers to enter:
- Seed cost
- Fertilizer cost
- Labor cost
- Water cost
- Expected yield (kg)
- Expected market price per kg
The app then calculates:
- Total production cost
- Cost per kg
- Break-even price
- Expected revenue
- Expected profit or loss
---
## Financial Model
### 1️ Total Cost
Total Cost = Seeds + Fertilizer + Labor + Water
### 2️ Cost per Kg
Cost per Kg = Total Cost ÷ Expected Yield
### 3️ Break-even Price
Break-even Price = Total Cost ÷ Expected Yield
### 4️ Expected Revenue
Revenue = Expected Yield × Expected Market Price
### 5️ Expected Profit/Loss
Profit = Revenue − Total Cost
---
## Example Scenario
Seed Cost: 3,000 Ksh
Fertilizer Cost: 12,000 Ksh
Labor Cost: 10,000 Ksh
Water Cost: 5,000 Ksh
Total Cost: 30,000 Ksh
Expected Yield: 1,000 kg
Expected Market Price: 45 Ksh/kg
Revenue: 45,000 Ksh
Profit: 15,000 Ksh
Break-even Price: 30 Ksh/kg
If market price drops below 30 Ksh/kg, the farmer makes a loss.
---
## Technologies Used
- HTML5
- CSS3
- JavaScript (ES6+)
- DOM Manipulation
- Form Validati …