Jump to content

Excel formula to PHP code


AdamPrintmeit

Recommended Posts

I rent out caravans and am looking to offer pay monthly options.


We have worked out a formula in Excel but need to convert it to php.


The excel formula is;


monthly cost = SUM( "holiday cost" / (rounddown(((( "hol date" - 30) - "todays date")/30),0)))


The problem is rounding the number down.


Can anyone help?


Link to comment
https://forums.phpfreaks.com/topic/285527-excel-formula-to-php-code/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.