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?