Back to problems

Dasher Payment Model

Object-Oriented Programming · DoorDash · Medium

Design a payment calculation system for a delivery driver. The driver's earnings depend on how much time they spend fulfilling orders and how many orders they handle simultaneously. You are provided with a chronological log of a driver's order activities from a single day. Your task is to compute the driver's total pay using the following rules: Standard hourly equivalent: The pay rate corresponds to $0.3 per minute. Concurrency bonus: During any time interval, the effective…

Checking your access…