Quantcast
Channel: PHP Freaks: PHP Help
Viewing all articles
Browse latest Browse all 13200

Excel formula to PHP code

$
0
0

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?


Viewing all articles
Browse latest Browse all 13200

Trending Articles