Values should be derived before summing
Merge pull request #46 from davewongillies/derive-fix

Values should be derived before summing