discharge book calculator