Update quality_specification.rb

Edited calculate_metrics method to be more concise.
Merge pull request #1 from annemnichols/patch-1

Update quality_specification.rb