Advanced Excel for Data AnalystsLesson 14 of 49
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 NameOrders DeliveredCustomer RatingBase Pay (₹)Incentive Bonus (₹)Net Payout (₹)
Vikram454.92,1005002,600
Amit284.61,12001,120
Pooja524.852,5205003,020
Deepak304.71,20001,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

ActionWindowsMac
Lock Range ReferenceF4Cmd + T
Copy Formula to BottomDouble-click bottom-right Fill HandleDouble-click Fill Handle
Audit Calculation StepsAlt + M + VFormulas 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.