Update credit_calculation.php