Calculating Total Allowable Error