I need some help on how to calculate amount. For example, my subscriptin is $100 per 100 credit, to calculate the amount of this or more, can someone provide me this scripts please.

<?php

// Define the amount of credits to purchase
$amount = 100;

// Set the price
$price = $amount;

// Return the price
echo $price;

?>

You need to be more precise and use better examples, and also at least try to solve the problem yourself.

"Please provide me the scripts" is not the way forward...

Thanks for this script, but what i want to do is to get the subscribed amount calculated irrespective of the amount subscribed. while the minimum credit is 100 for $100.