How the above calculations were performed (PDF)