Question: 
Write a python function to find maximum possible value for the given periodic function.


Model's Code:
def floor_Max(a, b, c):
    return max(0, min(a, b) - c)



Sample Correct Code:
def floor_Max(A,B,N):
    x = min(B - 1,N)
    return (A*x) // B


Asserts:
assert floor_Max(11,10,9) == 9
assert floor_Max(5,7,4) == 2
assert floor_Max(2,2,1) == 1


Tests:
Test 1 of 3: FAIL: AssertionError()

Test 968 of 974: 740/968 (76.44628099173553%): failed