Hi Thanks for the help but I dont think it quite solves it. I may be wrong but what if someone orders say multiples of 5 and then has a remainder.
I.e
q = 47
p = 1.5
What you put down takes away five and then times the rest by 1.5
so this would be as you said:
47 - $5 = $42
42 * $1.5 = 63 +5
= $68
Instead of this is what I need.
see if 47 divides by five (obviously it doesnt)
so 47 / $5 = 9.4
times $5 by 9 ( round 9.4 to the lowest)
and then times the remaider by $1.5
Hopefully this makes sense I need to no how to round the 9.4 to the lowest value and then find the remainder of the division