calculating hitting