$entryDate = “10/11/2023”; $cancellationDate = “12/11/2023”;
$daysToRefund = 5; $dailyCost = 100;
if ($entryDate < $cancellationDate) { return $daysToRefund * $dailyCost; } else { return 0; }