$entryDate = “10/05/2023”; $cancellationDate = “12/11/2023”; $daysToCredit = 5; $dailyCost = 50;
if ($entryDate “10/11/2023”) { return $daysToCredit * $dailyCost; } else { return 0; }