Added calculations

Added calculations for the average devices received each day, and the
percentage of devices that are broken.  Also added two new variables;
totalReceived and totalReceivedBroken