manowartist Posted August 20, 2009 Share Posted August 20, 2009 Hello! I rent some stuff and I'd like to add a calculator to my webpages with which my "customers" could calculate to price for a wanted time. My rent is based on a 24h system, so that the rent starts running the minute you accept the stuff, which is the first 24h. Next day same time starts the second 24h, so there's the point when the 24h period changes to the next. Is it possible to create such a calculator so that you just add the day and time when the rent starts and ends and the calculator would give as output the price? With kind regards, Micke Link to comment https://forums.phpfreaks.com/topic/171107-how-to-create-easy-time-price-online-calculator/ Share on other sites More sharing options...
Garethp Posted August 20, 2009 Share Posted August 20, 2009 http://au2.php.net/strtotime Use that to calculate the time between the dates, then just use that to calculate price Link to comment https://forums.phpfreaks.com/topic/171107-how-to-create-easy-time-price-online-calculator/#findComment-902331 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.