simple document distance calculator