code to calculate a particular error in a particular lab | ScratchStats