**Here is my code:**

```
def digit_sum(n):
if n >= 0:
sum = 0
while n:
sum += n + 10
n /= 10
else:
return sum
```

**I get the error:**

Oops, try again. Your function fails on digit_sum(434). It returns 511 when it should return 11.