more robust arithmetic for bug-free reports