<?php
$product_price = 549.99; // Ürün fiyatı
$interest_rate_monthly = 0.02; // Aylık faiz oranı, %2.
$month_days = 30; // Baz alınacak aylık gün sayısı
$interest_days = 1; // Faiz işlenen gün sayısı
$interest_rate_daily = ($interest_rate_monthly / $month_days); // Günlük faiz oranı, %2 / 30.
$interest_product_price = ($product_price + ($product_price * ($interest_rate_daily * $interest_days))); // Faizli ürün fiyatı
echo 'Ürün fiyatı: ' . $product_price;
echo '<br>';
echo 'Faizli ürün fiyatı: ' . $interest_product_price;
?>
Bu kodu hazırladım. Belki sizin için yararlı olabilir.