I get a Overflow error when i try this calculation, but i cant figure out why.
1-math.exp(-4*1000000*-0.0641515994108)
To fix it use:
try: ans = math.exp(200000) except OverflowError: ans = float('inf')