The problem is: A phone company charges this amount for the first minute and that amount for each additional minute. If someone talks for 3.1 minutes, they are charged for 4 minutes. Make a formula, blah blah blah...

Anyway I'm having trouble with making the equation work for both of these situations: when x is an integer, and when x is not an integer.

I already thought about int(x-.1) but then x could be .01, and it wouldn't be correct.

Any help is appreciated.