PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
what format do you have the dates in?
If they are in a unix timestamp like time() gives its just deduct and multiply, if it is in some literal format convert it to unixtime by using mktime() and then deduct and multiply..
if all dates are newer than january 1st 1970 you can do as I wrote, use mktime() to convert to unixtimestamp before subtracting and then multiplying...