I can't get my total calculation to work