15,797,984 members
See more:
```ROI Calculation : FMCG Distributor
Retail	Wholesale	Total
Monthly Turnover		600000.0	100000.0	700000.00
Margin % 		15%	3%
Gross Profit		90000.00	3000.00	93000.00

Expenses			Investment
1.Salary:-			Type	Value in lacs
Salesman	16000		Paid up stock	600000.00
Delivery Men	0		Pending claims	10000.00
Driver	0		Market credit	50000.00
Computor Operator	0		Total	660000.00
Godown Keeper	0
Total	16000
Total Profit
2. Delivery			Gross Profit	93000.00
Vehicle Fuel	3000		Subsidy Given by Co.	2000
Vehicle Maintenance	0		Total	95000.00
Vehicle Depriciation	0
Vehicle Insurance	0		Total Expenses	37500.00
or Rented cost of 3 Vehicles	0
Total	3000
Net Profit	57500.00
3.Establishment Cost
Office Rent	15000
Godown Rent	0
Electricity Bill	1000		ROI %	8.71
Stationary 	1000		Annual %	104.55
Others	1000
Total	18000		Good

4. Bank Charges	500

Total Expenses	37500			```

What I have tried:

try to make a roi calculator based on given information
Posted
Updated 31-May-23 0:04am
Richard MacCutchan 31-May-23 5:33am
You have all the figures, so you just need to design the algorithm to do the calculations. Once you have that, writing the code will be easy.

Solution 1

While we are more than willing to help those that are stuck, that doesn't mean that we are here to do it all for you! We can't do all the work, you are either getting paid for this, or it's part of your grades and it wouldn't be at all fair for us to do it all for you.

So we need you to do the work, and we will help you when you get stuck. That doesn't mean we will give you a step by step solution you can hand in!
Start by explaining where you are at the moment, and what the next step in the process is. Then tell us what you have tried to get that next step working, and what happened when you did.

If you are having problems getting started at all, then this may help: How to Write Code to Solve a Problem, A Beginner's Guide[^]