Lesson 14 of 49
Mini-Project 2: Swiggy Restaurant Partner Commission & Payout Engine
Overview & Learning Objectives
In this mini-project, you will engineer an automated weekly payout calculation model for 50 delivery riders. The model dynamically computes completed deliveries, tiered trip bonuses, customer rating bonuses, and penalty deductions.
- Calculate tiered base pay using IF / IFS based on delivery volume.
- Combine multiple eligibility conditions using AND for weekend rating bonuses.
- Shield total payout columns against errors using IFNA and IFERROR.
Industry Standard
Standard: Gig-economy logistics platforms (Swiggy, Zomato, Uber) rely on dynamic logic engines to audit rider earnings, incentive tiers, and fuel bonuses weekly.
Real-World Example: Food Delivery Rider Payout & Commission Calculator
Your delivery fleet earns ₹40 per order up to 30 orders, and ₹60 per order for orders above 30. Plus, riders with a customer rating >= 4.8 who deliver at least 40 orders get a ₹500 weekend bonus. You will automate this entire calculation in Excel.
| Rider Name | Orders Delivered | Customer Rating | Base Pay (₹) | Incentive Bonus (₹) | Net Payout (₹) |
|---|---|---|---|---|---|
| Vikram | 45 | 4.9 | 2,100 | 500 | 2,600 |
| Amit | 28 | 4.6 | 1,120 | 0 | 1,120 |
| Pooja | 52 | 4.85 | 2,520 | 500 | 3,020 |
| Deepak | 30 | 4.7 | 1,200 | 0 | 1,200 |
Project Formula Stack
Base Pay: =IF(B2<=30, B2*40, (30*40) + ((B2-30)*60))
Weekend Bonus: =IF(AND(B2>=40, C2>=4.8), 500, 0)
Net Payout: =D2 + E2
Parameters Breakdown
B2 <= 30 Tier: Standard delivery rate of ₹40 per trip.B2 > 30 Tier: Incentive tier: first 30 trips at ₹40 (₹1,200), subsequent trips at ₹60.Rating Bonus (AND): Rider must cross 40 trips AND maintain a 4.8+ rating to earn ₹500.
Sample Walkthrough (Q&A):
Question: Calculate Vikram's base pay for 45 delivered orders.
Formula / Action: `=(30 * 40) + ((45 - 30) * 60) = 1,200 + 900`
Result: ₹ 2,100 base pay.
Explanation: First 30 orders pay ₹40 (₹1,200). The extra 15 orders pay ₹60 (₹900).
Common Mistakes & Limitations
- Writing `B2 * 60` for all 45 orders (which incorrectly pays the higher rate on the first 30 orders).
- Forgetting parentheses around `(B2 - 30) * 60`, causing order of operations calculation bugs.
Keyboard Shortcuts
| Action | Windows | Mac |
|---|---|---|
| Lock Range Reference | F4 | Cmd + T |
| Copy Formula to Bottom | Double-click bottom-right Fill Handle | Double-click Fill Handle |
| Audit Calculation Steps | Alt + M + V | Formulas Ribbon |
Pro Tips & Modern Alternatives
- Store tier rates (₹40, ₹60, ₹500) in a dedicated "Assumptions" card at the top of the worksheet so they can be changed without editing formulas.
- Use custom currency formatting (`₹ #,##0`) so all earnings columns display clean Indian Rupee symbols.