calculating jar volume