Template to show QA data

also refactors percentage calculations