Component Location
Implemented in:src/components/SimulationSection.jsx:12-72
How It Works
The simulator uses an interactive range slider to let you specify how much you want to reduce your current RTO percentage, then calculates the financial impact of that reduction.Interactive Slider
- Range: 0% to 50% reduction
- Step: 1% increments
- Default: 10% reduction
- Code Reference:
SimulationSection.jsx:35-42
The slider represents an absolute reduction, not a relative one. For example, if your current RTO is 30% and you select a 10% reduction, your target RTO becomes 20% (not 27%).
Live Calculation Display
As you move the slider, the interface shows:Savings Calculation
ThecalculateSavings() function (calculations.js:59-71) compares your current metrics against the reduced RTO scenario:
Output Metrics
- Profit Improvement: Increase in net profit after RTO by reducing the RTO rate
- Saved Orders: Number of orders that would be successfully delivered instead of returned
Savings Card Display
The main savings card (SimulationSection.jsx:45-51) prominently displays:
- Potential Monthly Savings: ₹2,34,000
- Saving 780 orders from RTO
Quick Projections Grid
Below the slider, three preset scenarios are shown for quick reference (SimulationSection.jsx:54-67):
| Scenario | Calculation |
|---|---|
| If RTO drops by 5% | calculateSavings(data, 5, isAnnual).profitImprovement |
| If RTO drops by 10% | calculateSavings(data, 10, isAnnual).profitImprovement |
| If RTO drops by 15% | calculateSavings(data, 15, isAnnual).profitImprovement |
The preset projections (5%, 10%, 15%) remain fixed regardless of the slider position, allowing users to quickly compare standard reduction scenarios.
Real-World Example
Current State:- Monthly Orders: 10,000
- COD Percentage: 60% (6,000 COD orders)
- RTO Percentage: 30% (1,800 RTO orders)
- RTO Loss per Order: ₹620 (₹60 forward + ₹60 return + ₹500 product)
- Current Total RTO Loss: ₹11,16,000
- New RTO Orders: 1,200 (600 orders saved)
- New Total RTO Loss: ₹7,44,000
- Direct Loss Reduction: ₹3,72,000
- Revenue from Saved Orders: 600 × ₹1,500 = ₹9,00,000
- Net Profit Improvement: ₹3,72,000 + ₹9,00,000 = ₹12,72,000/month
Currency Formatting
All monetary values use Indian Rupee formatting:Use Cases
- Goal Setting: Determine target RTO reduction to achieve specific profit goals
- Investment Justification: Calculate ROI for RTO reduction initiatives (fraud prevention, address verification, etc.)
- Scenario Planning: Model multiple reduction scenarios to prioritize optimization efforts
- Stakeholder Communication: Show executives the financial impact of improving fulfillment operations
Integration with Other Features
The simulator works in conjunction with:- AI Insights: Provides actionable recommendations to achieve the modeled reductions
- Visual Analytics: Charts show before/after comparisons based on simulated improvements
- PDF Export: Includes optimization projections in exported reports
Monthly vs Annual Toggle
The simulator respects the global monthly/annual view toggle (App.jsx:169-183), automatically scaling all savings calculations by 12x for annual projections.