calcSum is global in case you need to calculate something very quickly and don't have time to worry about time.