sum.py
calculate utility