calculate average savings