I'm changing the example to make it more obvious. $100 paid in 10 days, $200 paid in 20 days.

$100 x 10 = 1000
$200 x 20 = 4000

Total dollar-days = 5000 divided by total dollar amount of $300 = 16.67 days