A discount deal calculator for book purchases