1. Most probably, your list is throwing garbage instead of any value.
2. You should use explicit type casting in calculation.